MCPcopy Create free account
hub / github.com/kataras/iris / SetMaxRequestBodySize

Method SetMaxRequestBodySize

context/context.go:2630–2632  ·  view source on GitHub ↗

+------------------------------------------------------------+ | Body Readers | +------------------------------------------------------------+ SetMaxRequestBodySize sets a limit to the request body size should be called before reading the request body fr

(limitOverBytes int64)

Source from the content-addressed store, hash-verified

2628// SetMaxRequestBodySize sets a limit to the request body size
2629// should be called before reading the request body from the client.
2630func (ctx *Context) SetMaxRequestBodySize(limitOverBytes int64) {
2631 ctx.request.Body = http.MaxBytesReader(ctx.writer, ctx.request.Body, limitOverBytes)
2632}
2633
2634var emptyFunc = func() {}
2635

Callers 2

uploadFunction · 0.80
context.goFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected