Documentation ¶
Overview ¶
Package bind contains convenience functions to decode HTTP request data.
Index ¶
- Variables
- func Body(r *http.Request, v any, flags ...Flag) error
- func DecodeForm(vals url.Values, v any, flags ...Flag) error
- func DecodeHeader(header http.Header, v any, flags ...Flag) error
- func DecodeQuery(vals url.Values, v any, flags ...Flag) error
- func EncodeForm(v any) (url.Values, error)
- func EncodeHeader(v any) (http.Header, error)
- func EncodeQuery(v any) (url.Values, error)
- func Header(r *http.Request, v any, flags ...Flag) error
- func Path(r *http.Request, v any, flags ...Flag) error
- func PathValue(r *http.Request, k string) string
- func Query(r *http.Request, v any, flags ...Flag) error
- func Request(r *http.Request, v any, flags ...Flag) error
- type Flag
- type Validator
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PathValueFunc func(*http.Request, string) string
)
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.