Documentation
¶
Index ¶
- type Context
- func (c *Context) Bytes(statusCode int, data []byte, contentType string) error
- func (c *Context) ClientIP() string
- func (c *Context) Cookie(name string) (*http.Cookie, error)
- func (c *Context) File(filePath string) error
- func (c *Context) FormFile(field string) (multipart.File, error)
- func (c *Context) HTML(statusCode int, html string) error
- func (c *Context) Header(key string) string
- func (c *Context) InternalServerError() error
- func (c *Context) JSON(statusCode int, v any) error
- func (c *Context) NoContent() error
- func (c *Context) NotFound() error
- func (c *Context) Param(key string) string
- func (c *Context) ParseForm(v any) error
- func (c *Context) ParseJSON(v any) error
- func (c *Context) ParseMultipartForm(v any, maxMemory int64) error
- func (c *Context) ParseQuery(v any) error
- func (c *Context) ParseXML(v any) error
- func (c *Context) Query(key string) string
- func (c *Context) Redirect(statusCode int, url string) error
- func (c *Context) Request() *http.Request
- func (c *Context) Response() *LoggingResponseWriter
- func (c *Context) SetCookie(cookie *http.Cookie)
- func (c *Context) SetHeader(key, value string)
- func (c *Context) SetValue(key ContextKey, value any)
- func (c *Context) Status(statusCode int)
- func (c *Context) Text(statusCode int, message string) error
- func (c *Context) UserAgent() string
- func (c *Context) Value(key ContextKey) any
- type ContextKey
- type ErrorHandler
- type Feather
- func (f *Feather) DELETE(path string, h Handler, middlewares ...Middleware)
- func (f *Feather) GET(path string, h Handler, middlewares ...Middleware)
- func (f *Feather) Group(prefix string) *Group
- func (f *Feather) HEAD(path string, h Handler, middlewares ...Middleware)
- func (f *Feather) OPTIONS(path string, h Handler, middlewares ...Middleware)
- func (f *Feather) PATCH(path string, h Handler, middlewares ...Middleware)
- func (f *Feather) POST(path string, h Handler, middlewares ...Middleware)
- func (f *Feather) PUT(path string, h Handler, middlewares ...Middleware)
- func (f *Feather) SetErrorHandler(errorHandler ErrorHandler)
- func (f *Feather) Start(listenAddr string) error
- func (f *Feather) Static(prefix, root string, middlewares ...Middleware)
- func (f *Feather) Use(middlewares ...Middleware)
- type Group
- func (g *Group) DELETE(path string, h Handler, middlewares ...Middleware)
- func (g *Group) GET(path string, h Handler, middlewares ...Middleware)
- func (g *Group) Group(prefix string) *Group
- func (g *Group) HEAD(path string, h Handler, middlewares ...Middleware)
- func (g *Group) OPTIONS(path string, h Handler, middlewares ...Middleware)
- func (g *Group) PATCH(path string, h Handler, middlewares ...Middleware)
- func (g *Group) POST(path string, h Handler, middlewares ...Middleware)
- func (g *Group) PUT(path string, h Handler, middlewares ...Middleware)
- func (g *Group) Static(prefix, root string, middlewares ...Middleware)
- func (g *Group) Use(middlewares ...Middleware)
- type Handler
- type Json
- type LoggingResponseWriter
- type Middleware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.