parseRangeHeader.d.ts 425 B

1234567891011121314
  1. import '../_version.js';
  2. /**
  3. * @param {string} rangeHeader A Range: header value.
  4. * @return {Object} An object with `start` and `end` properties, reflecting
  5. * the parsed value of the Range: header. If either the `start` or `end` are
  6. * omitted, then `null` will be returned.
  7. *
  8. * @private
  9. */
  10. declare function parseRangeHeader(rangeHeader: string): {
  11. start?: number;
  12. end?: number;
  13. };
  14. export { parseRangeHeader };