Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Address string TLSCertfile string TLSKeyfile string ReadTimeout time.Duration WriteTimeout time.Duration }
Config defines engine configuration.
type HandlerFunc ¶
func (HandlerFunc) ServeHTTP ¶
func (h HandlerFunc) ServeHTTP(req Request, res Response)
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.
Click to show internal directories.
Click to hide internal directories.