Documentation ¶
Index ¶
- type Context
- func (p *Context) Abort(s int, e error)
- func (p *Context) BindForm(fm interface{}) error
- func (p *Context) BindJSON(fm interface{}) error
- func (p *Context) ClientIP() string
- func (p *Context) Cookie(n string) string
- func (p *Context) FormFile(n string) (*multipart.FileHeader, error)
- func (p *Context) Header(n string) string
- func (p *Context) Home() string
- func (p *Context) JSON(s int, v interface{})
- func (p *Context) Locale() string
- func (p *Context) Param(n string) string
- func (p *Context) Query(n string) string
- func (p *Context) XML(s int, v interface{})
- type H
- type HandlerFunc
- type Router
- func (p *Router) DELETE(pat string, hnd HandlerFunc)
- func (p *Router) GET(pat string, hnd HandlerFunc)
- func (p *Router) Group(pat string) *Router
- func (p *Router) Listen(port int, debug bool, origins ...string) error
- func (p *Router) PATCH(pat string, hnd HandlerFunc)
- func (p *Router) POST(pat string, hnd HandlerFunc)
- func (p *Router) PUT(pat string, hnd HandlerFunc)
- func (p *Router) Walk(f func(methods []string, pattern string) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Request *http.Request Writer http.ResponseWriter // contains filtered or unexported fields }
Context http context
func (*Context) FormFile ¶
func (p *Context) FormFile(n string) (*multipart.FileHeader, error)
FormFile file upload
Click to show internal directories.
Click to hide internal directories.