Documentation
¶
Overview ¶
Package httpd implements an HTTP server with a complete lifecycle. The name httpd stands for HTTP daemon.
Index ¶
Constants ¶
View Source
const DisabledTimeout time.Duration = -1
DisabledTimeout is a special value that indicates that a timeout is disabled. It will effectively set the timeout to a 0 value. It is used to override the default timeouts.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Interface string
Port string
ReadHeaderTimeout time.Duration
ReadTimeout time.Duration
IdleTimeout time.Duration
WriteTimeout time.Duration
ShutdownTimeout time.Duration
}
Config contains server setup.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements an HTTP server with a complete lifecycle.
Click to show internal directories.
Click to hide internal directories.