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.factory

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

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

optional
S extends State = Record<string, any>

Parameters

optional
options: ETagOptions