Registry / web-framework / gin-contrib-size

gin-contrib-size

JSON →
library1.0.2gogounverified

A middleware for the Gin web framework that limits request body size.

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

size
github.com/gin-contrib/size

Gin middleware to limit request body size

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

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
gin-contrib-size — go get gin-contrib-size · libregistry