Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/superoak/test/deps.ts>etag.factory

HTTP assertions for Oak made easy via SuperDeno. 🐿 🦕
Latest
function etag.factory
import { etag } from "https://deno.land/x/superoak@4.8.1/test/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