Skip to main content
function ifMatch
import { ifMatch } from "https://deno.land/x/etag@0.0.1/mod.ts";

A helper function that takes the value from the If-Match header and an entity and returns true if the ETag for the entity matches the supplied value, otherwise false.

Parameters

value: string
entity: Entity
optional
options: Options = [UNSUPPORTED]

Returns

boolean