requestbody

package
v2.0.0-...-4d08927 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestBody

type RequestBody struct {
	// The maximum number of bytes to allow reading from the body by a later handler.
	MaxSize int64 `json:"max_size,omitempty"`
}

RequestBody is a middleware for manipulating the request body.

func (RequestBody) CaddyModule

func (RequestBody) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (RequestBody) ServeHTTP

func (rb RequestBody) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL