bodyparser

package
v0.0.0-...-529ece8 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCu = errors.New("415: charset.unsupported")
View Source
var ErrEtl = errors.New("413: entity.too.large")
View Source
var ErrEu = errors.New("415: encoding.unsupported")
View Source
var ErrEvf = errors.New("403: entity.verify.failed")

Functions

func Json

func Json(jsonConfig ...JsonConfig) expressgo.Callback

func Raw

func Raw(rawConfig ...RawConfig) expressgo.Callback

func Text

func Text(textConfig ...TextConfig) expressgo.Callback

func Urlencoded

func Urlencoded(urlencodedConfig ...UrlencodedConfig) expressgo.Callback

Types

type JsonConfig

type JsonConfig struct {
	Receiver any
	Type     any
	Inflate  bool
	Limit    any

	Verify Verify
	// contains filtered or unexported fields
}

type Mime

type Mime struct {
	Extensions []string `json:"extensions"`
}

type RawConfig

type RawConfig struct {
	Type    any
	Inflate bool
	Limit   any

	Verify Verify
	// contains filtered or unexported fields
}

type TextConfig

type TextConfig struct {
	Type    any
	Inflate bool
	Limit   any

	Verify         Verify
	DefaultCharset string
	// contains filtered or unexported fields
}

type UrlencodedConfig

type UrlencodedConfig struct {
	Type    any
	Inflate bool
	Limit   any

	Verify         Verify
	DefaultCharset string
	// contains filtered or unexported fields
}

type Verify

type Verify func(*expressgo.Request, *expressgo.Response, []byte, string) error

Jump to

Keyboard shortcuts

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