x/oak/middleware/etag.ts

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Latest
function factory
import { factory } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v17.1.3/middleware/etag.ts?s=factory";

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>
[src]