Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestBufferer ¶
type RequestBufferer struct{}
RequestBufferer reads entire request body before send to next middleware
func BufferRequest ¶
func BufferRequest() *RequestBufferer
BufferRequest creates new request bufferer
func (RequestBufferer) ServeHandler ¶
func (m RequestBufferer) ServeHandler(h http.Handler) http.Handler
ServeHandler implements middleware interface
type RequestLimiter ¶
RequestLimiter limits request body size
func LimitRequest ¶
func LimitRequest(size int64) *RequestLimiter
LimitRequest creates new request limiter
func (RequestLimiter) ServeHandler ¶
func (m RequestLimiter) ServeHandler(h http.Handler) http.Handler
ServeHandler implements middleware interface
Click to show internal directories.
Click to hide internal directories.