Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/oak/etag.ts>getEntity

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
function getEntity
import { getEntity } from "https://deno.land/x/oak@v12.1.0/etag.ts";

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
>