createHeaders.d.ts 697 B

1234567891011121314151617
  1. import '../_version.js';
  2. /**
  3. * This is a utility method that determines whether the current browser supports
  4. * the features required to create streamed responses. Currently, it checks if
  5. * [`ReadableStream`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/ReadableStream)
  6. * is available.
  7. *
  8. * @private
  9. * @param {HeadersInit} [headersInit] If there's no `Content-Type` specified,
  10. * `'text/html'` will be used by default.
  11. * @return {boolean} `true`, if the current browser meets the requirements for
  12. * streaming responses, and `false` otherwise.
  13. *
  14. * @memberof module:workbox-streams
  15. */
  16. declare function createHeaders(headersInit?: {}): Headers;
  17. export { createHeaders };