Documentation ¶
Index ¶
- func NewRequest(method, url string, body io.Reader) engine.Request
- type Cookie
- type Header
- type Pool
- type Request
- func (r *Request) Body() io.Reader
- func (r *Request) ContentLength() int64
- func (r *Request) Cookie(name string) (engine.Cookie, error)
- func (r *Request) Cookies() []engine.Cookie
- func (r *Request) FormFile(name string) (*multipart.FileHeader, error)
- func (r *Request) FormParams() map[string][]string
- func (r *Request) FormValue(name string) string
- func (r *Request) Header() engine.Header
- func (r *Request) Host() string
- func (r *Request) IsTLS() bool
- func (r *Request) Method() string
- func (r *Request) MultipartForm() (*multipart.Form, error)
- func (r *Request) RealIP() string
- func (r *Request) Referer() string
- func (r *Request) RemoteAddress() string
- func (r *Request) Scheme() string
- func (r *Request) SetBody(reader io.Reader)
- func (r *Request) SetHost(host string)
- func (r *Request) SetMethod(method string)
- func (r *Request) SetURI(uri string)
- func (r *Request) URI() string
- func (r *Request) URL() engine.URL
- func (r *Request) UserAgent() string
- type Response
- func (r *Response) Committed() bool
- func (r *Response) Header() engine.Header
- func (r *Response) SetCookie(c engine.Cookie)
- func (r *Response) SetWriter(w io.Writer)
- func (r *Response) Size() int64
- func (r *Response) Status() int
- func (r *Response) Write(b []byte) (n int, err error)
- func (r *Response) WriteHeader(code int)
- func (r *Response) Writer() io.Writer
- type ResponseRecorder
- type Server
- type URL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cookie ¶
Cookie implements `engine.Cookie`.
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func (*Request) ContentLength ¶
func (*Request) FormParams ¶
func (*Request) RemoteAddress ¶
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func (*Response) WriteHeader ¶
type ResponseRecorder ¶
func NewResponseRecorder ¶
func NewResponseRecorder() *ResponseRecorder
type Server ¶
func (*Server) SetHandler ¶
type URL ¶
type URL struct {
// contains filtered or unexported fields
}
func (*URL) QueryParam ¶
func (*URL) QueryParams ¶
func (*URL) QueryString ¶
Click to show internal directories.
Click to hide internal directories.