Options
All
  • Public
  • Public/Protected
  • All
Menu

The conditions of an HTTP conditional request.

Hierarchy

  • Conditions

Index

Properties

matches

matches: (eTag?: string, lastModified?: Date) => boolean

Type declaration

    • (eTag?: string, lastModified?: Date): boolean
    • Checks validity based on the given ETag and/org date.

      Parameters

      • Optional eTag: string

        Condition based on ETag.

      • Optional lastModified: Date

        Condition based on last modified date.

      Returns boolean

matchesEtag

matchesEtag: string[]

Valid if matching any of the given ETags.

matchesMetadata

matchesMetadata: (metadata: RepresentationMetadata) => boolean

Type declaration

Optional modifiedSince

modifiedSince: Date

Valid if modified since the given date.

notMatchesEtag

notMatchesEtag: string[]

Valid if not matching any of the given ETags.

Optional unmodifiedSince

unmodifiedSince: Date

Valid if not modified since the given date.