requestbody

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 9 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.
	// If more bytes are read, an error with HTTP status 413 is returned.
	MaxSize int64 `json:"max_size,omitempty"`

	// EXPERIMENTAL. Subject to change/removal.
	ReadTimeout time.Duration `json:"read_timeout,omitempty"`

	// EXPERIMENTAL. Subject to change/removal.
	WriteTimeout time.Duration `json:"write_timeout,omitempty"`
	// contains filtered or unexported fields
}

RequestBody is a middleware for manipulating the request body.

func (RequestBody) KengineModule

func (RequestBody) KengineModule() kengine.ModuleInfo

KengineModule returns the Kengine module information.

func (*RequestBody) Provision

func (rb *RequestBody) Provision(ctx kengine.Context) error

func (RequestBody) ServeHTTP

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

Jump to

Keyboard shortcuts

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