form2json

package module
v0.0.0-...-c81d2f1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// The maximum bytes of memory to use when decoding form payloads.
	// Any files larger than this limit will be written to disk temporarily
	// while processing requests. Default: 2 MB
	MemoryLimit int64 `json:"memory_limit,omitempty"`
}

Handler parses multipart/form data and converts it to JSON.

func (Handler) CaddyModule

func (Handler) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (Handler) Provision

func (h Handler) Provision(_ caddy.Context) error

Provision sets up the module.

func (Handler) ServeHTTP

func (h Handler) 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