Skip to main content
Module

x/oak/range.ts

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Extremely Popular
Go to Latest
import * as oak from "https://deno.land/x/oak@14.2.0/range.ts";

Functions for dealing with Range headers in requests.

Classes

A class that takes a file (either a Deno.FsFile or Uint8Array) and bytes and streams the ranges as a multi-part encoded HTTP body.

Functions

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.

Given a range header value and a current byte size of an asset, determine what ranges of bytes are being requested.

Interfaces

A representation of range of bytes.