x/oak/mod.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
function ifRange
import { ifRange } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v11.1.0/mod.ts?s=ifRange";

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[src]
mtime: number[src]
entity: Uint8Array | FileInfo[src]

Returns

Promise<boolean>[src]