Module

x/oak/etag.ts>factory

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
function factory
import { factory } from "https://dotland.deno.dev/x/oak@v12.6.2/etag.ts";

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