Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
24 lines
582 B
Plaintext
24 lines
582 B
Plaintext
export type ByteRange = {
|
|
end: number;
|
|
start: number;
|
|
};
|
|
export type ParseRangeResult = {
|
|
range: ByteRange;
|
|
type: 'partial';
|
|
} | {
|
|
range: null;
|
|
type: 'full';
|
|
} | {
|
|
range: null;
|
|
type: 'invalid';
|
|
};
|
|
/**
|
|
* Parses HTTP Range header according to RFC 7233
|
|
*
|
|
* @returns Result object indicating whether to serve full file, partial content, or invalid range
|
|
*/
|
|
export declare function parseRangeHeader({ fileSize, rangeHeader, }: {
|
|
fileSize: number;
|
|
rangeHeader: null | string;
|
|
}): ParseRangeResult;
|
|
//# sourceMappingURL=parseRangeHeader.d.ts.map |