x/oak/middleware/etag.ts

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

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

Type Parameters

optional
S extends State = Record<string, any>
[src]

Returns

Promise<
| string
| Uint8Array
| Deno.FileInfo
| undefined
>
[src]