Documentation ¶
Index ¶
- func WrapHandler(h http.Handler) echo.HandlerFunc
- func WrapMiddleware(m func(http.Handler) http.Handler) echo.MiddlewareFunc
- type Header
- 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 Response
- func (r *Response) CloseNotify() <-chan bool
- func (r *Response) Committed() bool
- func (r *Response) Flush()
- func (r *Response) Header() engine.Header
- func (r *Response) Hijack() (net.Conn, *bufio.ReadWriter, error)
- 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 Server
- type URL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapHandler ¶
func WrapHandler(h http.Handler) echo.HandlerFunc
WrapHandler wraps `http.Handler` into `echo.HandlerFunc`.
func WrapMiddleware ¶
WrapMiddleware wraps `func(http.Handler) http.Handler` into `echo.MiddlewareFunc`
Types ¶
type Header ¶
Header implements `engine.Header`.
type Request ¶
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 Response ¶
type Response struct { http.ResponseWriter // contains filtered or unexported fields }
Response implements `engine.Response`.
func (*Response) CloseNotify ¶
CloseNotify implements the http.CloseNotifier interface to allow detecting when the underlying connection has gone away. This mechanism can be used to cancel long operations on the server if the client has disconnected before the response is ready. See https://golang.org/pkg/net/http/#CloseNotifier
func (*Response) Flush ¶
func (r *Response) Flush()
Flush implements the http.Flusher interface to allow an HTTP handler to flush buffered data to the client. See https://golang.org/pkg/net/http/#Flusher
func (*Response) Hijack ¶
Hijack implements the http.Hijacker interface to allow an HTTP handler to take over the connection. See https://golang.org/pkg/net/http/#Hijacker
func (*Response) WriteHeader ¶
WriteHeader implements `engine.Response#WriteHeader` 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 `standard.Server` from TLS config.
func (*Server) ServeHTTP ¶
func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements `http.Handler` interface.
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.