Documentation ¶
Index ¶
- func By(h Handler) func(res http.ResponseWriter, req *http.Request, par httprouter.Params)
- type Context
- func (ctx *Context) Header(name string) string
- func (ctx *Context) Param(name string) string
- func (ctx *Context) ParamInt(name string) (int, error)
- func (ctx *Context) ParseForm() map[string][]string
- func (ctx *Context) Read() ([]byte, error)
- func (ctx *Context) ReadJson(v interface{}) error
- func (ctx *Context) ReadString() (string, error)
- func (ctx *Context) RedirectSeeOther(url string)
- func (ctx *Context) StatusBadRequest(msg string)
- func (ctx *Context) StatusInternalServerError(msg string)
- func (ctx *Context) StatusUnAuthorized(msg string)
- func (ctx *Context) Write(b []byte, contentType string) error
- func (ctx *Context) WriteJson(v interface{}) error
- func (ctx *Context) WriteString(s string) error
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func By ¶
func By(h Handler) func(res http.ResponseWriter, req *http.Request, par httprouter.Params)
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) ReadString ¶
func (*Context) RedirectSeeOther ¶
func (*Context) StatusBadRequest ¶
func (*Context) StatusInternalServerError ¶
func (*Context) StatusUnAuthorized ¶
func (*Context) WriteString ¶
Click to show internal directories.
Click to hide internal directories.