Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oak_http_proxy/test/deps.ts>Oak.etag.getEntity

Proxy middleware for Deno Oak HTTP servers. 🐿 🦕
Latest
function Oak.etag.getEntity
import { Oak } from "https://deno.land/x/oak_http_proxy@2.3.0/test/deps.ts";
const { getEntity } = Oak.etag;

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>

Returns

Promise<
| string
| Uint8Array
| undefined
>