Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FormRequest ¶
type HandlerFunc ¶
type HandlerFunc func(Context)
type Middleware ¶
type Middleware func(Context)
type Request ¶
type Request interface { Header(key, defaultValue string) string Headers() http.Header Method() string Path() string Url() string FullUrl() string Ip() string //Input Retrieve an input item from the request: /users/{id} Input(key string) string // Query Retrieve a query string item form the request: /users?id=1 Query(key, defaultValue string) string QueryArray(key string) []string QueryMap(key string) map[string]string // Form Retrieve a form string item form the post: /users POST:id=1 Form(key, defaultValue string) string Bind(obj any) error File(name string) (filesystem.File, error) AbortWithStatus(code int) AbortWithStatusJson(code int, jsonObj any) Next() Origin() *http.Request Validate(rules map[string]string, options ...validation.Option) (validation.Validator, error) ValidateRequest(request FormRequest) (validation.Errors, error) }
type ResponseOrigin ¶
type ResponseSuccess ¶
Click to show internal directories.
Click to hide internal directories.