Documentation
¶
Index ¶
- Variables
- func NewRequest() engine.Request
- type Header
- type Request
- func (r *Request) BasicAuth() (string, string, bool)
- func (r *Request) Body() io.ReadCloser
- func (r *Request) Cookie(string) string
- func (r *Request) Form() engine.URLValuer
- func (r *Request) FormFile(string) (multipart.File, *multipart.FileHeader, error)
- func (r *Request) FormValue(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
- func (r *Request) Object() interface{}
- func (r *Request) PostForm() engine.URLValuer
- func (r *Request) Proto() string
- func (r *Request) RealIP() string
- func (r *Request) Referer() string
- func (r *Request) RemoteAddress() string
- func (r *Request) Scheme() string
- func (r *Request) SetBody(io.Reader)
- func (r *Request) SetHost(string)
- func (r *Request) SetMethod(string)
- func (r *Request) SetURI(string)
- func (r *Request) Size() int64
- func (r *Request) StdRequest() *http.Request
- func (r *Request) URI() string
- func (r *Request) URL() engine.URL
- func (r *Request) UserAgent() string
- type Response
- func (r *Response) Body() []byte
- func (r *Response) Committed() bool
- func (r *Response) Error(errMsg string, args ...int)
- func (r *Response) Header() engine.Header
- func (r *Response) Hijack(fn func(net.Conn))
- func (r *Response) KeepBody(on bool)
- func (r *Response) NotFound()
- func (r *Response) Object() interface{}
- func (r *Response) Redirect(url string, code int)
- func (r *Response) ServeFile(file string)
- func (r *Response) SetCookie(cookie *http.Cookie)
- func (r *Response) SetWriter(w io.Writer)
- func (r *Response) Size() int64
- func (r *Response) Status() int
- func (r *Response) StdResponseWriter() http.ResponseWriter
- func (r *Response) Stream(step func(io.Writer) bool)
- func (r *Response) Write(b []byte) (n int, err error)
- func (r *Response) WriteHeader(code int)
- func (r *Response) Writer() io.Writer
- type URL
- func (u *URL) Object() interface{}
- func (u *URL) Path() string
- func (u *URL) Query() url.Values
- func (u *URL) QueryValue(name string) string
- func (u *URL) QueryValues(name string) []string
- func (u *URL) RawPath() string
- func (u *URL) RawQuery() string
- func (u *URL) SetPath(path string)
- func (u *URL) SetRawQuery(rawQuery string)
- func (u *URL) String() string
- type Value
- func (v *Value) Add(key string, value string)
- func (v *Value) All() map[string][]string
- func (v *Value) Del(key string)
- func (v *Value) Encode() string
- func (v *Value) Get(key string) string
- func (v *Value) Gets(key string) []string
- func (v *Value) Merge(data url.Values)
- func (v *Value) Reset(data url.Values)
- func (v *Value) Set(key string, value string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotImplemented = errors.New("not implemented")
Functions ¶
func NewRequest ¶
Types ¶
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func (*Request) Host ¶
Host returns HTTP request host. Per RFC 2616, this is either the value of the `Host` header or the host name given in the URL itself.
func (*Request) MultipartForm ¶
MultipartForm returns the multipart form.
func (*Request) RealIP ¶
RealIP returns the client's network address based on `X-Forwarded-For` or `X-Real-IP` request header.
func (*Request) RemoteAddress ¶
RemoteAddress returns the client's network address.
func (*Request) StdRequest ¶
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func NewResponse ¶
func NewResponse() *Response
func (*Response) StdResponseWriter ¶
func (r *Response) StdResponseWriter() http.ResponseWriter
func (*Response) WriteHeader ¶
type URL ¶
type URL struct {
// contains filtered or unexported fields
}
func (*URL) QueryValue ¶
func (*URL) QueryValues ¶
func (*URL) SetRawQuery ¶
Click to show internal directories.
Click to hide internal directories.