The conditions of an HTTP conditional request.

Hierarchy

  • Conditions

Implemented by

Properties

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

Type declaration

    • (eTag?: string, lastModified?: Date): boolean
    • Checks validity based on the given ETag and/or date. This function assumes the resource being checked exists. If not, the matchesMetadata function should be used.

      Parameters

      • Optional eTag: string

        Condition based on ETag.

      • Optional lastModified: Date

        Condition based on last modified date.

      Returns boolean

matchesETag?: string[]

Valid if matching any of the given ETags.

matchesMetadata: ((metadata?: RepresentationMetadata) => boolean)

Type declaration

    • (metadata?: RepresentationMetadata): boolean
    • Checks validity based on the given metadata.

      Parameters

      • Optional metadata: RepresentationMetadata

        Metadata of the representation. Undefined if the resource does not exist.

      Returns boolean

modifiedSince?: Date

Valid if modified since the given date.

notMatchesETag?: string[]

Valid if not matching any of the given ETags.

unmodifiedSince?: Date

Valid if not modified since the given date.