Module

x/oak_sessions/deps.ts>ifRange

Session middleware for Oak
Latest
function ifRange
import { ifRange } from "https://dotland.deno.dev/x/oak_sessions@v4.1.11/deps.ts";

Determine, by the value of an If-Range header, if a Range header should be applied to a request, returning true if it should or otherwise false.

Parameters

value: string
mtime: number
entity: Uint8Array | FileInfo

Returns

Promise<boolean>