Documentation ¶
Index ¶
- type Request
- func (r *Request) Body() io.ReadCloser
- func (r *Request) FormValue(name string) string
- func (r *Request) Header() engine.Header
- func (r *Request) Host() string
- func (r *Request) Method() string
- func (r *Request) Object() interface{}
- func (r *Request) RemoteAddress() string
- func (r *Request) URI() string
- func (r *Request) URL() engine.URL
- type RequestHeader
- type Response
- func (r *Response) Committed() bool
- func (r *Response) Header() engine.Header
- func (r *Response) Object() interface{}
- func (r *Response) SetWriter(w io.Writer)
- func (r *Response) Size() int64
- func (r *Response) Status() int
- func (r *Response) Write(b []byte) (int, error)
- func (r *Response) WriteHeader(code int)
- func (r *Response) Writer() io.Writer
- type ResponseHeader
- type Server
- type URL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func NewRequest ¶
func NewRequest(c *fasthttp.RequestCtx) *Request
func (*Request) Body ¶
func (r *Request) Body() io.ReadCloser
func (*Request) RemoteAddress ¶
type RequestHeader ¶
type RequestHeader struct {
// contains filtered or unexported fields
}
func (*RequestHeader) Add ¶
func (h *RequestHeader) Add(key, val string)
func (*RequestHeader) Del ¶
func (h *RequestHeader) Del(key string)
func (*RequestHeader) Get ¶
func (h *RequestHeader) Get(key string) string
func (*RequestHeader) Set ¶
func (h *RequestHeader) Set(key, val string)
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func (*Response) WriteHeader ¶
type ResponseHeader ¶
type ResponseHeader struct {
// contains filtered or unexported fields
}
func (*ResponseHeader) Add ¶
func (h *ResponseHeader) Add(key, val string)
func (*ResponseHeader) Del ¶
func (h *ResponseHeader) Del(key string)
func (*ResponseHeader) Get ¶
func (h *ResponseHeader) Get(key string) string
func (*ResponseHeader) Set ¶
func (h *ResponseHeader) Set(key, val string)
type Server ¶
func (*Server) SetHandler ¶
func (s *Server) SetHandler(h engine.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.