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.

index.d.ts 542B

12345678910111213141516171819202122
  1. /// <reference types="node"/>
  2. import {IncomingMessage} from 'http';
  3. /**
  4. Decompress a HTTP response if needed.
  5. @param response - The HTTP incoming stream with compressed data.
  6. @returns The decompressed HTTP response stream.
  7. @example
  8. ```
  9. import {http} from 'http';
  10. import decompressResponse = require('decompress-response');
  11. http.get('https://sindresorhus.com', response => {
  12. response = decompressResponse(response);
  13. });
  14. ```
  15. */
  16. declare function decompressResponse(response: IncomingMessage): IncomingMessage;
  17. export = decompressResponse;