Module

x/oak/range.ts>ifRange

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
function ifRange
import { ifRange } from "https://dotland.deno.dev/x/oak@v12.2.0/range.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>