unzip-response

WebJar for unzip-response

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

unzip-response
Last Version

Last Version

2.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

unzip-response
WebJar for unzip-response
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/unzip-response

Download unzip-response

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/unzip-response/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>unzip-response</artifactId>
    <version>2.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/unzip-response/
implementation 'org.webjars.npm:unzip-response:2.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/unzip-response/
implementation ("org.webjars.npm:unzip-response:2.0.1")
'org.webjars.npm:unzip-response:jar:2.0.1'
<dependency org="org.webjars.npm" name="unzip-response" rev="2.0.1">
  <artifact name="unzip-response" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='unzip-response', version='2.0.1')
)
libraryDependencies += "org.webjars.npm" % "unzip-response" % "2.0.1"
[org.webjars.npm/unzip-response "2.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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

const http = require('http');
const decompressResponse = require('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.


Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Versions

Version
2.0.1
1.0.0