Documentation
¶
Overview ¶
Package httpx provides enhanced HTTP request parsing with support for nested structs, multiple array notations, default values, and complete form data handling.
Index ¶
- func Parse(c echo.Context, v any, pattern string) error
- func ParseForm(c echo.Context, v any) error
- func ParseHeader(headerValue string) map[string]string
- func ParseHeaders(c echo.Context, v any) error
- func ParseJsonBody(c echo.Context, v any) error
- func ParsePath(c echo.Context, v any, pattern string) error
- func ParseQuery(c echo.Context, v any) error
- func SetValidator(val Validator)
- func ValidateStruct(v any) error
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseHeader ¶
ParseHeader parses a single header value that contains key-value pairs
func ParseHeaders ¶
ParseHeaders extracts and parses HTTP headers
func ParseJsonBody ¶
ParseJsonBody handles JSON request body parsing
func ParseQuery ¶
ParseQuery handles URL query parameters with support for nested structs and arrays
func SetValidator ¶
func SetValidator(val Validator)
SetValidator configures the validator used for validating parsed data
func ValidateStruct ¶
ValidateStruct validates the struct fields based on the `validate` tag.
Types ¶
Click to show internal directories.
Click to hide internal directories.