package engine
import "github.com/labstack/echo/engine"
Index ¶
- type Config
- type Engine
- type Handler
- type HandlerFunc
- type Header
- type Request
- type Response
- type URL
Types ¶
type Config ¶
type Config struct { Address string TLSCertfile string TLSKeyfile string ReadTimeout time.Duration WriteTimeout time.Duration }
Config defines engine configuration.
type Engine ¶
Engine defines an interface for HTTP server.
type Handler ¶
type HandlerFunc ¶
func (HandlerFunc) ServeHTTP ¶
func (h HandlerFunc) ServeHTTP(req Request, res Response)
type Header ¶
Header defines an interface for HTTP header.
type Request ¶
type Request interface { TLS() bool Scheme() string Host() string URI() string URL() URL Header() Header // Proto() string // ProtoMajor() int // ProtoMinor() int RemoteAddress() string Method() string Body() io.ReadCloser FormValue(string) string }
Request defines an interface for HTTP request.
type Response ¶
type Response interface { Header() Header WriteHeader(int) Write(b []byte) (int, error) Status() int Size() int64 Committed() bool SetWriter(io.Writer) Writer() io.Writer }
Response defines an interface for HTTP response.
type URL ¶
URL defines an interface for HTTP request url.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
engine/fasthttp | |
engine/standard |
- Version
- v2.0.0-beta.1+incompatible
- Published
- Mar 11, 2016
- Platform
- darwin/amd64
- Imports
- 3 packages
- Last checked
- 2 hours ago –
Tools for package owners.