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

x/oak_sessions/deps.ts>etag.factory

Session middleware for Oak
Go to Latest
function etag.factory
import { etag } from "https://deno.land/x/oak_sessions@v4.1.10/deps.ts";
const { factory } = 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