Skip to main content
Module

x/etag_parser/validate.ts>isStrongETag

HTTP ETag header field parser
Latest
function isStrongETag
import { isStrongETag } from "https://deno.land/x/etag_parser@1.1.0/validate.ts";

Whether the ETag is StrongETag or not.

Examples

Example 1

import { isStrongETag } from "https://deno.land/x/etag_parser@$VERSION/validate.ts";
import { assert, assertFalse } from "https://deno.land/std/testing/asserts.ts";

assert(isStrongETag({ weak: false, tag: "123456789" }));
assertFalse(isStrongETag({ weak: true, tag: "123456789" }));