Skip to main content
Module

x/oak_sessions/deps.ts>etag.getEntity

Session middleware for Oak
Go to Latest
function etag.getEntity
import { etag } from "https://deno.land/x/oak_sessions@v4.0.0/deps.ts";
const { getEntity } = 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
>