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

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

Super-agent driven library for testing Deno HTTP servers.
Go to Latest
function Oak.ifRange
import { Oak } from "https://deno.land/x/superdeno@4.8.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>