x/oak/etag.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
function ifNoneMatch
import { ifNoneMatch } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v11.1.0/etag.ts?s=ifNoneMatch";

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

See MDN's If-None-Match article for more information on how to use this function.

Parameters

value: string[src]
entity: string | Uint8Array | FileInfo[src]
optional
options: ETagOptions
[src]

Returns

Promise<boolean>[src]