Module

x/oak/middleware/etag.ts

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Go to Latest
import * as mod from "https://dotland.deno.dev/x/oak@v17.0.0/middleware/etag.ts";

A collection of oak specific APIs for management of ETags.

Functions

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.

For a given Context, try to determine the response body entity that an ETag can be calculated from.