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@cs6/react-native-test-native-view-library@con-test/react-native-concent-common@damruravihara/react-native-testing-package@corelmax/react-native-my2c2p-sdk@devenjadhav/notion-todo-list@borealisswap/borealis-swap-lib@praella/localisationistcauseway-concrete-stylesjeuxuijrennsoh88-react-native-scroll-indicatorjesh-calculationjnf-accesscontrol-rnttljordy-frijters-test-libjametkafirchain-tetriskhaled-salem-custom-componentsgomantic_releasejawwy_library_newjawy_library_v1gamification-jawwy-libraryframework_test_library_sixdee_new_jawwytest_lib_module_aarquickcapture_react_nativern-agora-ios-mzzzxxxyyy321123web-yii2react-native-omental-frameworkreact-native-sixdee_test_libtingzi-vuepresstinymce-plugin-toyuimotldrawlignintwine-libtwine-library@amiruldev/wajs@amirdiafi/react-native-ios-haptics@apardellass/react-native-audio-stream@artilleryio/int-core@asiz33/smartblok-vendure-plugin@aviinash_jha/react-native-test_multiply@afria/afria-libraries@ali5049/react-native-buttons@bee-icons/qwik
9.0.0

1 year ago

8.1.0

2 years ago

8.0.0

4 years ago

7.0.0

4 years ago

6.0.0

5 years ago

5.0.0

6 years ago

4.2.1

6 years ago

4.2.0

6 years ago

4.1.0

6 years ago

4.0.0

6 years ago

3.3.0

8 years ago

3.2.0

8 years ago

3.1.0

8 years ago