You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1.2 KiB
25 lines
1.2 KiB
/**
|
|
* Parse a 'Content-Type' header value to the content-type and parameters
|
|
* @param {String} rawContentType the raw string to parse from
|
|
* @returns {Object} the parsed content type with the fields: type and params
|
|
*/
|
|
export function parseContentType(rawContentType: string): any;
|
|
/**
|
|
* Parse a 'Content-Range' header value to its start, end, and total parts
|
|
* @param {String} rawContentRange the raw string to parse from
|
|
* @returns {Object} the parsed parts
|
|
*/
|
|
export function parseContentRange(rawContentRange: string): any;
|
|
/**
|
|
* Parses a list of byteranges from the given 'multipart/byteranges' HTTP response.
|
|
* Each item in the list has the following properties:
|
|
* - headers: the HTTP headers
|
|
* - data: the sliced ArrayBuffer for that specific part
|
|
* - offset: the offset of the byterange within its originating file
|
|
* - length: the length of the byterange
|
|
* @param {ArrayBuffer} responseArrayBuffer the response to be parsed and split
|
|
* @param {String} boundary the boundary string used to split the sections
|
|
* @returns {Object[]} the parsed byteranges
|
|
*/
|
|
export function parseByteRanges(responseArrayBuffer: ArrayBuffer, boundary: string): any[];
|
|
//# sourceMappingURL=httputils.d.ts.map
|