UNPKG

@httpland/range-request-middleware

Version:
13 lines (12 loc) 625 B
import { type InclRange } from "../deps.js"; export interface MultipartByteranges { readonly content: ArrayBuffer; readonly contentType: string; readonly ranges: readonly [InclRange, ...readonly InclRange[]]; readonly rangeUnit: string; readonly boundary: string; } /** Deserialize {@link MultipartByteranges} into multipart/byterages bytestream. */ export declare function multipartByteranges(args: MultipartByteranges): ArrayBuffer; export declare function join(list: readonly Uint8Array[], separator: Uint8Array): Uint8Array; export declare function toBuffer(input: string | ArrayBuffer): ArrayBuffer;