Skip to main content
Module

x/etag_parser/validate.ts

HTTP ETag header field parser
Latest
import * as etagParser from "https://deno.land/x/etag_parser@1.1.0/validate.ts";

Functions

Assert for <etagc> format.

Strong comparison. Two ETag are equivalent if both are StrongETag and ETag.tag match character-by-character. Compliant with RFC 9110, 8.8.3.2. Comparison.

Weak comparison. Two ETag are equivalent if ETag.tag match character-by-character, regardless of either or both being tagged as ETag.weak. Compliant with RFC 9110, 8.8.3.2. Comparison.

Whether the input is <etagc> format or not.

Whether the ETag is StrongETag or not.

Whether the ETag is WeakETag or not.