Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSuitableContentNotFound = errors.New("binder: suitable content not found to parse body") ErrMapNotConvertable = errors.New("binder: map is not convertable to map[string]string or map[string][]string") )
Binder errors
View Source
var ( HeaderBinder = &headerBinding{} CookieBinder = &cookieBinding{} QueryBinder = &queryBinding{} FormBinder = &formBinding{} URIBinder = &uriBinding{} XMLBinder = &xmlBinding{} JSONBinder = &jsonBinding{} )
Init default binders for Fiber
Functions ¶
func FilterFlags ¶
Get content type from content type header
func SetParserDecoder ¶
func SetParserDecoder(parserConfig ParserConfig)
SetParserDecoder allow globally change the option of form decoder, update decoderPool
Types ¶
type ParserConfig ¶
type ParserConfig struct { SetAliasTag string ParserType []ParserType IgnoreUnknownKeys bool ZeroEmpty bool }
ParserConfig form decoder config for SetParserDecoder
Click to show internal directories.
Click to hide internal directories.