finki-main
main
|
Last change
on this file since 81bc7da was 81bc7da, checked in by Klimentina Efremova <klimentina08642@…>, 3 months ago |
|
Initial commit
|
-
Property mode
set to
100644
|
|
File size:
542 bytes
|
| Rev | Line | |
|---|
| [81bc7da] | 1 | /// <reference types="node"/>
|
|---|
| 2 | import {IncomingMessage} from 'http';
|
|---|
| 3 |
|
|---|
| 4 | /**
|
|---|
| 5 | Decompress a HTTP response if needed.
|
|---|
| 6 |
|
|---|
| 7 | @param response - The HTTP incoming stream with compressed data.
|
|---|
| 8 | @returns The decompressed HTTP response stream.
|
|---|
| 9 |
|
|---|
| 10 | @example
|
|---|
| 11 | ```
|
|---|
| 12 | import {http} from 'http';
|
|---|
| 13 | import decompressResponse = require('decompress-response');
|
|---|
| 14 |
|
|---|
| 15 | http.get('https://sindresorhus.com', response => {
|
|---|
| 16 | response = decompressResponse(response);
|
|---|
| 17 | });
|
|---|
| 18 | ```
|
|---|
| 19 | */
|
|---|
| 20 | declare function decompressResponse(response: IncomingMessage): IncomingMessage;
|
|---|
| 21 |
|
|---|
| 22 | export = decompressResponse;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.