Documentation
¶
Index ¶
- type Context
- func (p *Context) AddHeader(name, value string)
- func (p *Context) DelHeader(name string)
- func (p *Context) Form() url.Values
- func (p *Context) FormValue(name string) string
- func (p *Context) NotFound()
- func (p *Context) PostForm() url.Values
- func (p *Context) ReadQuery(data interface{}) error
- func (p *Context) ServeFile(name string)
- func (p *Context) SetHeader(name, value string)
- func (p *Context) Write(data []byte) (n int, err error)
- func (p *Context) WriteHeader(statusCode int, h http.Header)
- func (p *Context) WriteJSON(v interface{}) error
- func (p *Context) WriteString(str string) error
- func (p *Context) WriteXML(v interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
W http.ResponseWriter
R *http.Request
}
func NewContext ¶
func NewContext(w http.ResponseWriter, r *http.Request) *Context
func (*Context) WriteHeader ¶
h may be nil
func (*Context) WriteString ¶
Click to show internal directories.
Click to hide internal directories.