云盘
志元云盘
备份云盘
Home
/
志元云盘
/
webdav
/
home
/
jcore
/
web
/
front_end
/
node_modules
/
decompress-response
File
OriginalPic
Thumbnails
CopyAllDownloadUrl
EditTime
Size
index.js
2017-06-03 03:38:30
628 B
license
2016-10-26 03:09:34
1.09 KB
package.json
2017-06-03 03:43:46
951 B
readme.md
2017-05-06 18:12:46
841 B
# decompress-response [](https://travis-ci.org/sindresorhus/decompress-response) > Decompress a HTTP response if needed Decompresses the [response](https://nodejs.org/api/http.html#http_class_http_incomingmessage) from [`http.request`](https://nodejs.org/api/http.html#http_http_request_options_callback) if it's gzipped or deflated, otherwise just passes it through. Used by [`got`](https://github.com/sindresorhus/got). ## Install ``` $ npm install decompress-response ``` ## Usage ```js const http = require('http'); const decompressResponse = require('decompress-response'); http.get('http://sindresorhus.com', response => { response = decompressResponse(response); }); ``` ## License MIT © [Sindre Sorhus](https://sindresorhus.com)
2025-09-02 05:17:16 Tuesday 216.73.216.107 Runningtime:0.017s Mem:1.48 MB