x/oak/mod.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
function etag.factory
import { etag } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v11.1.0/mod.ts?s=etag.factory";

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