Documentation
¶
Index ¶
- func CheckHeaderParams(name string, v *string, ctx *fiber.Ctx) bool
- func CheckHeaderParamsWithErrorMsg(name string, v *string, errorMsg string, ctx *fiber.Ctx) bool
- func CheckParamsWithErrorMsg(name string, str string, v *string, errorMsg string, ctx *fiber.Ctx) bool
- func CheckPostFormParams(name string, v *string, ctx *fiber.Ctx) bool
- func CheckPostFormParamsWithErrorMsg(name string, v *string, errorMsg string, ctx *fiber.Ctx) bool
- func CheckQueryParams(name string, v *string, ctx *fiber.Ctx) bool
- func CheckQueryParamsWithErrorMsg(name string, v *string, errorMsg string, ctx *fiber.Ctx) bool
- func GetHeader(ctx *fiber.Ctx, key string) string
- func NewServer(options server.Options, routerProvider func(engine *fiber.App), ...) server.Server
- func PostFormArray(ctx *fiber.Ctx, name string) []string
- func QueryArray(ctx *fiber.Ctx, name string) []string
- func ShouldBindBody(ctx *fiber.Ctx, obj any) error
- func ShouldBindHeader(ctx *fiber.Ctx, obj any) error
- func ShouldBindParams(ctx *fiber.Ctx, obj any) error
- func ShouldBindQuery(ctx *fiber.Ctx, obj any) error
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckHeaderParams ¶ added in v0.6.17
func CheckHeaderParamsWithErrorMsg ¶ added in v0.6.17
func CheckParamsWithErrorMsg ¶ added in v0.6.17
func CheckPostFormParams ¶ added in v0.6.17
func CheckPostFormParamsWithErrorMsg ¶ added in v0.6.17
func CheckQueryParams ¶ added in v0.6.17
func CheckQueryParamsWithErrorMsg ¶ added in v0.6.17
func PostFormArray ¶ added in v0.6.17
func QueryArray ¶ added in v0.6.17
func ShouldBindBody ¶
ShouldBindBody binds the request body to a struct. It supports decoding the following content types based on the Content-Type header: application/json, application/xml, application/x-www-form-urlencoded, multipart/form-data If none of the content types above are matched, it will return a ErrUnprocessableEntity error
func ShouldBindHeader ¶
func ShouldBindParams ¶
func ShouldBindQuery ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.