Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/superdeno/test/deps.ts>Oak.etag.ifNoneMatch

Super-agent driven library for testing Deno HTTP servers.
Go to Latest
function Oak.etag.ifNoneMatch
import { Oak } from "https://deno.land/x/superdeno@4.8.0/test/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>