Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hex/src/fw/service/deps.ts>oak.etag.ifNoneMatch

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
function oak.etag.ifNoneMatch
import { oak } from "https://deno.land/x/hex@0.6.5/src/fw/service/deps.ts";
const { ifNoneMatch } = oak.etag;

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
entity: string | Uint8Array | FileInfo
optional
options: ETagOptions = [UNSUPPORTED]

Returns

Promise<boolean>