Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/oak_sessions/deps.ts>ifRange

Session middleware for Oak
Go to Latest
function ifRange
import { ifRange } from "https://deno.land/x/oak_sessions@v4.1.6/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>