Registry / networking / cafxx-httpcompression

cafxx-httpcompression

JSON →
library0.0.9gogounverified

Package httpcompression provides HTTP compression middleware for Go servers.

go get github.com/CAFxX/httpcompression
INSTALL
IMPORT
SIG · CAFXX-HTTPCOMPRESS
C
cafxx-httpcompression
networkinggov0.0.9
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.

httpcompression
✓ github.com/CAFxX/httpcompression

Wrap a handler with compression middleware

package main import ( "net/http" "github.com/CAFxX/httpcompression" ) func main() { handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("Hello, World!")) }) compressedHandler, _ := httpcompression.Adapter()(handler) http.ListenAndServe(":8080", compressedHandler) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
26
OpenAI (training)
1
Resources