Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferingMiddleware ¶
type BufferingMiddleware struct {
// contains filtered or unexported fields
}
func NewMiddleware ¶
func NewMiddleware(config Config) *BufferingMiddleware
func (*BufferingMiddleware) ServeHTTP ¶
func (m *BufferingMiddleware) ServeHTTP(ctx context.Context, c *app.RequestContext)
type Config ¶
type Config struct {
// MaxRequestBodySize limits the maximum number of bytes for the request body.
// Default 4194304 (4MB) if not specified or set to 0.
MaxRequestBodySize int64 `mapstructure:"max_request_body_size" json:"max_request_body_size"`
}
Config holds the configuration for the buffering middleware.
Click to show internal directories.
Click to hide internal directories.