UNPKG

@helia/verified-fetch

Version:

A fetch-like API for obtaining verified & trustless IPFS content on the web

13 lines 565 B
export declare function getHeader(headers: HeadersInit | undefined, header: string): string | undefined; /** * Given two ints from a Range header, and potential fileSize, returns: * 1. number of bytes the response should contain. * 2. the start index of the range. // inclusive * 3. the end index of the range. // inclusive */ export declare function calculateByteRangeIndexes(start: number | undefined, end: number | undefined, fileSize?: number): { byteSize?: number; start?: number; end?: number; }; //# sourceMappingURL=request-headers.d.ts.map