Documentation
¶
Index ¶
- Constants
- Variables
- 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 ClearCookie(ctx *fiber.Ctx, domain string, path string, keys ...string)
- func GetCookie(name string, ctx *fiber.Ctx) string
- 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 SetCookie(c cookie.Cookie, ctx *fiber.Ctx)
- 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 ¶
View Source
const ( CookieDeleteMe = "DeleteMe" CookieDeleteMaxAge = 0 )
Variables ¶
Functions ¶
func CheckHeaderParams ¶
func CheckParamsWithErrorMsg ¶
func CheckPostFormParams ¶
func CheckQueryParams ¶
func ClearCookie ¶
del cookie if len(keys)==0 this function will delete all cookies
func PostFormArray ¶
func QueryArray ¶
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.