🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

github.com/go-rs/compression

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/go-rs/compression

v0.0.0-20190629115132-560f4f2c7854
Source
Go
Version published
Created
Source

Response Payload Compressor

Added gzip compression mechanism for response payload.

How to use?

var api rest.API

// rest.API pointer
// use value between level -2 to 9 OR gzip constants
h := compression.Handler(&api, gzip.BestCompression)

http.ListenAndServe(":8080", h)

FAQs

Package last updated on 29 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts