Registry / web-framework / nytimes-gziphandler

nytimes-gziphandler

JSON →
library1.1.1gogounverified

A Go HTTP handler that transparently compresses responses using gzip compression.

go get github.com/NYTimes/gziphandler
INSTALL
IMPORT
SIG · NYTIMES-GZIPHANDLE
N
nytimes-gziphandler
web-frameworkgov1.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

gziphandler
✓ github.com/NYTimes/gziphandler

Wraps an existing HTTP handler with gzip compression.

package main import ( "net/http" "github.com/NYTimes/gziphandler" ) func main() { handler := gziphandler.GzipHandler(http.FileServer(http.Dir("./static"))) http.ListenAndServe(":8080", handler) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
nytimes-gziphandler — go get nytimes-gziphandler · libregistry