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

x/hex/src/fw/service/deps.ts>oak.ifRange

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
function oak.ifRange
import { oak } from "https://deno.land/x/hex@0.6.5/src/fw/service/deps.ts";
const { ifRange } = oak;

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>