Skip to main content
Module

x/oak/mod.ts>etag.getEntity

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
function etag.getEntity
import { etag } from "https://deno.land/x/oak@v11.1.0/mod.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
>