Detailansicht verbessert
This commit is contained in:
29
express-server/node_modules/unzip-response/readme.md
generated
vendored
Normal file
29
express-server/node_modules/unzip-response/readme.md
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
# unzip-response [](https://travis-ci.org/sindresorhus/unzip-response)
|
||||
|
||||
> Unzip a HTTP response if needed
|
||||
|
||||
Unzips the response from [`http.request`](https://nodejs.org/api/http.html#http_http_request_options_callback) if it's gzipped/deflated, otherwise just passes it through.
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save unzip-response
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const http = require('http');
|
||||
const unzipResponse = require('unzip-response');
|
||||
|
||||
http.get('http://sindresorhus.com', res => {
|
||||
res = unzipResponse(res);
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
Reference in New Issue
Block a user