Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oak_http_proxy/test/deps.ts>Oak.ifRange

Proxy middleware for Deno Oak HTTP servers. 🐿 🦕
Latest
function Oak.ifRange
import { Oak } from "https://deno.land/x/oak_http_proxy@2.3.0/test/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>