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

x/oak_http_proxy/test/deps.ts>Oak.etag.factory

Proxy middleware for Deno Oak HTTP servers. 🐿 🦕
Latest
function Oak.etag.factory
import { Oak } from "https://deno.land/x/oak_http_proxy@2.3.0/test/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