Documentation ¶
Index ¶
- type Air
- type Context
- func (c *Context) Bytes(code int, data []byte)
- func (c *Context) Error(code int, err error)
- func (c *Context) GetHeader(key string) string
- func (c *Context) GetParam(key string) string
- func (c *Context) HTML(code int, v string)
- func (c *Context) JSON(code int, obj any)
- func (c *Context) Next()
- func (c *Context) Query(key string) string
- func (c *Context) SetHeader(key, value string)
- func (c *Context) String(code int, format string, v ...any)
- type Handler
- type Map
- type RouterGroup
- func (g *RouterGroup) Delete(path string, h Handler)
- func (g *RouterGroup) Get(path string, h Handler)
- func (g *RouterGroup) Group(path string) *RouterGroup
- func (g *RouterGroup) Patch(path string, h Handler)
- func (g *RouterGroup) Post(path string, h Handler)
- func (g *RouterGroup) Put(path string, h Handler)
- func (g *RouterGroup) Use(h ...Handler)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Writer http.ResponseWriter Request *http.Request Method string Path string // contains filtered or unexported fields }
func NewContext ¶
func NewContext(w http.ResponseWriter, r *http.Request) *Context
type RouterGroup ¶
type RouterGroup struct {
// contains filtered or unexported fields
}
Router group.
func (*RouterGroup) Delete ¶
func (g *RouterGroup) Delete(path string, h Handler)
Add DELETE handler.
func (*RouterGroup) Group ¶
func (g *RouterGroup) Group(path string) *RouterGroup
Create a router group.
Click to show internal directories.
Click to hide internal directories.