Skip to main content
function factory
import { factory } from "https://deno.land/x/etag@0.0.1/mod.ts";

Create middleware that will attempt to decode the response.body into something that can be used to generate an ETag and add the ETag header to the response.

Type Parameters

S extends State

Parameters

optional
options: Options = [UNSUPPORTED]

Returns

Middleware<S>