Skip to main content
Module

std/http/util.ts>compareEtag

Deno standard library
Go to Latest
function compareEtag
Deprecated
Deprecated

(will be removed after 0.187.0) use etag/ifMatch and etag/ifNoneMatch instead.

import { compareEtag } from "https://deno.land/std@0.186.0/http/util.ts";

Returns true if the etags match. Weak etag comparisons are handled.

Parameters

a: string
b: string

Returns

boolean