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