Versions in this module Expand all Collapse all v1 v1.15.0 Sep 9, 2024 Changes in this version + const MethodConnect + const MethodDelete + const MethodGet + const MethodHead + const MethodOptions + const MethodPatch + const MethodPost + const MethodPut + const MethodTrace + const StatusAccepted + const StatusAlreadyReported + const StatusBadGateway + const StatusBadRequest + const StatusConflict + const StatusContinue + const StatusCreated + const StatusEarlyHints + const StatusExpectationFailed + const StatusFailedDependency + const StatusForbidden + const StatusFound + const StatusGatewayTimeout + const StatusGone + const StatusHTTPVersionNotSupported + const StatusIMUsed + const StatusInsufficientStorage + const StatusInternalServerError + const StatusLengthRequired + const StatusLocked + const StatusLoopDetected + const StatusMethodNotAllowed + const StatusMisdirectedRequest + const StatusMovedPermanently + const StatusMultiStatus + const StatusMultipleChoices + const StatusNetworkAuthenticationRequired + const StatusNoContent + const StatusNonAuthoritativeInfo + const StatusNotAcceptable + const StatusNotExtended + const StatusNotFound + const StatusNotImplemented + const StatusNotModified + const StatusOK + const StatusPartialContent + const StatusPaymentRequired + const StatusPermanentRedirect + const StatusPreconditionFailed + const StatusPreconditionRequired + const StatusProcessing + const StatusProxyAuthRequired + const StatusRequestEntityTooLarge + const StatusRequestHeaderFieldsTooLarge + const StatusRequestTimeout + const StatusRequestURITooLong + const StatusRequestedRangeNotSatisfiable + const StatusResetContent + const StatusSeeOther + const StatusServiceUnavailable + const StatusSwitchingProtocols + const StatusTeapot + const StatusTemporaryRedirect + const StatusTooEarly + const StatusTooManyRequests + const StatusUnauthorized + const StatusUnavailableForLegalReasons + const StatusUnprocessableEntity + const StatusUnsupportedMediaType + const StatusUpgradeRequired + const StatusUseProxy + const StatusVariantAlsoNegotiates + func StatusText(code int) string + type Context interface + Context func() context.Context + Request func() ContextRequest + Response func() ContextResponse + WithValue func(key any, value any) + type ContextRequest interface + AbortWithStatus func(code int) + AbortWithStatusJson func(code int, jsonObj any) + All func() map[string]any + Bind func(obj any) error + BindQuery func(obj any) error + Cookie func(key string, defaultValue ...string) string + File func(name string) (filesystem.File, error) + FullUrl func() string + HasSession func() bool + Header func(key string, defaultValue ...string) string + Headers func() http.Header + Host func() string + Input func(key string, defaultValue ...string) string + InputArray func(key string, defaultValue ...[]string) []string + InputBool func(key string, defaultValue ...bool) bool + InputInt func(key string, defaultValue ...int) int + InputInt64 func(key string, defaultValue ...int64) int64 + InputMap func(key string, defaultValue ...map[string]string) map[string]string + Ip func() string + Method func() string + Next func() + Origin func() *http.Request + Path func() string + Queries func() map[string]string + Query func(key string, defaultValue ...string) string + QueryArray func(key string) []string + QueryBool func(key string, defaultValue ...bool) bool + QueryInt func(key string, defaultValue ...int) int + QueryInt64 func(key string, defaultValue ...int64) int64 + QueryMap func(key string) map[string]string + Route func(key string) string + RouteInt func(key string) int + RouteInt64 func(key string) int64 + Session func() session.Session + SetSession func(session session.Session) ContextRequest + Url func() string + Validate func(rules map[string]string, options ...validation.Option) (validation.Validator, error) + ValidateRequest func(request FormRequest) (validation.Errors, error) + type ContextResponse interface + Cookie func(cookie Cookie) ContextResponse + Data func(code int, contentType string, data []byte) Response + Download func(filepath, filename string) Response + File func(filepath string) Response + Flush func() + Header func(key, value string) ContextResponse + Json func(code int, obj any) Response + NoContent func(code ...int) Response + Origin func() ResponseOrigin + Redirect func(code int, location string) Response + Status func(code int) ResponseStatus + Stream func(code int, step func(w StreamWriter) error) Response + String func(code int, format string, values ...any) Response + Success func() ResponseStatus + View func() ResponseView + WithoutCookie func(name string) ContextResponse + Writer func() http.ResponseWriter + type Cookie struct + Domain string + Expires time.Time + HttpOnly bool + MaxAge int + Name string + Path string + Raw string + SameSite string + Secure bool + Value string + type FormRequest interface + Attributes func(ctx Context) map[string]string + Authorize func(ctx Context) error + Filters func(ctx Context) map[string]string + Messages func(ctx Context) map[string]string + PrepareForValidation func(ctx Context, data validation.Data) error + Rules func(ctx Context) map[string]string + type HandlerFunc func(Context) Response + type Json map[string]any + type Limit interface + By func(key string) Limit + Response func(func(ctx Context)) Limit + type Middleware func(Context) + type RateLimiter interface + For func(name string, callback func(ctx Context) Limit) + ForWithLimits func(name string, callback func(ctx Context) []Limit) + Limiter func(name string) func(ctx Context) []Limit + type ResourceController interface + Destroy func(Context) Response + Index func(Context) Response + Show func(Context) Response + Store func(Context) Response + Update func(Context) Response + type Response interface + Render func() error + type ResponseOrigin interface + Body func() *bytes.Buffer + Header func() http.Header + Size func() int + Status func() int + type ResponseStatus interface + Data func(contentType string, data []byte) Response + Json func(obj any) Response + Stream func(step func(w StreamWriter) error) Response + String func(format string, values ...any) Response + type ResponseView interface + First func(views []string, data ...any) Response + Make func(view string, data ...any) Response + type StreamWriter interface + Flush func() error + Write func(data []byte) (int, error) + WriteString func(data string) (int, error) + type View interface + Exists func(view string) bool + GetShared func() map[string]any + Share func(key string, value any) + Shared func(key string, def ...any) any