Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.1.4/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
>