9.0.0 • Published 1 year ago

decompress-response v9.0.0

Weekly downloads
21,764,049
License
MIT
Repository
github
Last release
1 year ago

decompress-response

Decompress a HTTP response if needed

Decompresses the response from http.request if it's gzipped, deflated or compressed with Brotli, otherwise just passes it through.

Used by got.

Install

npm install decompress-response

Usage

import http from 'node:http';
import decompressResponse from 'decompress-response';

http.get('https://sindresorhus.com', response => {
	response = decompressResponse(response);
});

API

decompressResponse(response)

Returns the decompressed HTTP response stream.

response

Type: http.IncomingMessage

The HTTP incoming stream with compressed data.

gotsimple-getarchetype-libraryeasy-select-rnreact-native-bluetooth2got-blah-blah-testcad-clidbase.idcloud-archive-s3airscanairscan-examplereact-native-esc-pos-sahaab@borisovart/atol-kkt-moduledeneme323112@ntt_app/react-native-custom-notificationdiscord-music-botsreact-native-covid-sdkeasycommands-beta@saeon/quick-formmysql-formatreact-native-printer-brothersreact-native-shekhar-bridge-testcogoportutilsdyx-reacttalent-to-vite-cli@oiti/documentoscopy-react-nativequoc-testone-indexunblock-block-save-variables@prodam/prodam-typesopea-bootstraapluminos-ui-core@everything-registry/sub-chunk-1459jawwy-sdkjawwy_gamification_releasereact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkg@rabailriaz/hisaab-web-portalreact-native-jawwy_samplegriffin-ui-librarytag-inspector-npm-testingtest-library-123test-haptik-libweb-elements-iconswebchewifi_configuration_packagewhatsconcteapackage-tatespoorman297sui-monorepotest-zeo-collectvision-camera-plugin-face-detectorvision-camera-plugin-scan-facesvision-camera-base64-resizedvantiq-reactvite_vue3_ts_ssssdddddyyyy@borealisswap/borealis-swap-lib@praella/localisationistcauseway-concrete-stylesjeuxuijrennsoh88-react-native-scroll-indicatorjesh-calculationjnf-accesscontrol-rnttljordy-frijters-test-libjametkafirchain-tetriskhaled-salem-custom-componentshw9img-sliceimg-slicerimdragons.jshong1-utilshiep-simple-getgrbliveprodmama-exporterm2m-chartjs-plugin-crosshairloading-animatedkooks@wecraftapps/react-native-use-keyboard@tlgeo/react-native-gdal@thismr/bitmindtest-core@thinxviewx/core-rn@types/decompress-response@tonysusi/vapid@uppercod/request@vandai-nguyen/module_test@xsahxl/got@xswap/v2-core@xiwen5566/aqara-automation-switch@yplabs-ltd/react-native-detector@yak-spirit/yak-swap-ui@zalastax/nolb-decoallproxy@zotasys/nativeagent-get-agentadonis-ally-figmaangularvezbaaxios-yet-another-proxy-fix
9.0.0

1 year ago

8.1.0

3 years ago

8.0.0

4 years ago

7.0.0

5 years ago

6.0.0

5 years ago

5.0.0

6 years ago

4.2.1

6 years ago

4.2.0

7 years ago

4.1.0

7 years ago

4.0.0

7 years ago

3.3.0

8 years ago

3.2.0

8 years ago

3.1.0

8 years ago