Documentation ¶
Index ¶
- func WrapHandler(h fasthttp.RequestHandler) echo.HandlerFunc
- func WrapMiddleware(h fasthttp.RequestHandler) echo.MiddlewareFunc
- type Request
- func (r *Request) Body() io.Reader
- func (r *Request) FormFile(name string) (*multipart.FileHeader, error)
- 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) MultipartForm() (*multipart.Form, error)
- func (r *Request) RemoteAddress() string
- func (r *Request) Scheme() string
- func (r *Request) SetMethod(method string)
- func (r *Request) TLS() bool
- func (r *Request) URI() string
- func (r *Request) URL() engine.URL
- func (r *Request) UserAgent() string
- type RequestHeader
- type Response
- func (r *Response) Committed() bool
- func (r *Response) Header() engine.Header
- 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 ResponseHeader
- type Server
- type URL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapHandler ¶
func WrapHandler(h fasthttp.RequestHandler) echo.HandlerFunc
WrapHandler wraps `fasthttp.RequestHandler` into `echo.HandlerFunc`.
func WrapMiddleware ¶
func WrapMiddleware(h fasthttp.RequestHandler) echo.MiddlewareFunc
WrapMiddleware wraps `fasthttp.RequestHandler` into `echo.MiddlewareFunc`
Types ¶
type Request ¶
type Request struct { *fasthttp.RequestCtx // contains filtered or unexported fields }
Request implements `engine.Request`.
func (*Request) FormFile ¶
func (r *Request) FormFile(name string) (*multipart.FileHeader, error)
FormFile implements `engine.Request#FormFile` function.
func (*Request) MultipartForm ¶
MultipartForm implements `engine.Request#MultipartForm` function.
func (*Request) RemoteAddress ¶
RemoteAddress implements `engine.Request#RemoteAddress` function.
type RequestHeader ¶
type RequestHeader struct {
*fasthttp.RequestHeader
}
RequestHeader holds `fasthttp.RequestHeader`.
func (*RequestHeader) Add ¶
func (h *RequestHeader) Add(key, val string)
Add implements `engine.Header#Add` function.
func (*RequestHeader) Del ¶
func (h *RequestHeader) Del(key string)
Del implements `engine.Header#Del` function.
func (*RequestHeader) Get ¶
func (h *RequestHeader) Get(key string) string
Get implements `engine.Header#Get` function.
func (*RequestHeader) Keys ¶
func (h *RequestHeader) Keys() (keys []string)
Keys implements `engine.Header#Keys` function.
func (*RequestHeader) Set ¶
func (h *RequestHeader) Set(key, val string)
Set implements `engine.Header#Set` function.
type Response ¶
type Response struct { *fasthttp.RequestCtx // contains filtered or unexported fields }
Response implements `engine.Response`.
func (*Response) WriteHeader ¶
WriteHeader implements `engine.Response#WriteHeader` function.
type ResponseHeader ¶
type ResponseHeader struct {
*fasthttp.ResponseHeader
}
ResponseHeader holds `fasthttp.ResponseHeader`.
func (*ResponseHeader) Add ¶
func (h *ResponseHeader) Add(key, val string)
Add implements `engine.Header#Add` function.
func (*ResponseHeader) Del ¶
func (h *ResponseHeader) Del(key string)
Del implements `engine.Header#Del` function.
func (*ResponseHeader) Get ¶
func (h *ResponseHeader) Get(key string) string
Get implements `engine.Header#Get` function.
func (*ResponseHeader) Keys ¶
func (h *ResponseHeader) Keys() (keys []string)
Keys implements `engine.Header#Keys` function.
func (*ResponseHeader) Set ¶
func (h *ResponseHeader) Set(key, val string)
Set implements `engine.Header#Set` function.
type Server ¶
Server implements `engine.Server`.
func NewFromConfig ¶
NewFromConfig returns an instance of `standard.Server` from config.
func NewFromTLS ¶
NewFromTLS returns an instance of `fasthttp.Server` from TLS config.
func (*Server) ServeHTTP ¶
func (s *Server) ServeHTTP(c *fasthttp.RequestCtx)
func (*Server) SetHandler ¶
SetHandler implements `engine.Server#SetHandler` function.
type URL ¶
URL implements `engine.URL`.
func (*URL) QueryParam ¶
QueryParam implements `engine.URL#QueryParam` function.
func (*URL) QueryString ¶
QueryString implements `engine.URL#QueryString` function.