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

x/hex/src/service/deps.ts>oak.etag.getEntity

An ecosystem delivering practices, philosophy and portability.
Go to Latest
function oak.etag.getEntity
import { oak } from "https://deno.land/x/hex@0.5.15/src/service/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
>