Registry / web-framework / gin-contrib-gzip

gin-contrib-gzip

JSON →
library1.2.6gogounverified

Gzip middleware for the Gin web framework.

go get github.com/gin-contrib/gzip
INSTALL
IMPORT
SIG · GIN-CONTRIB-GZIP
G
gin-contrib-gzip
web-frameworkgov1.2.6
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.

gzip
github.com/gin-contrib/gzip

Add gzip compression to a Gin router.

package main import ( "github.com/gin-contrib/gzip" "github.com/gin-gonic/gin" ) func main() { r := gin.Default() r.Use(gzip.Gzip(gzip.DefaultCompression)) r.GET("/", func(c *gin.Context) { c.String(200, "Hello") }) r.Run() }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources