Documentation ¶
Overview ¶
httpserver package provides HTTP, HTTPS and FastCGI servers
Index ¶
Constants ¶
View Source
const ( DefaultLabel = "httpserver" DefaultTimeout = 10 * time.Second )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Label_ string `hcl:"label,label" json:"label"` Router types.Task `hcl:"router,optional" json:"router"` Addr string `hcl:"listen,optional" json:"listen"` // Address or path for binding HTTP server TLS *TLS `hcl:"tls,block" json:"tls"` // TLS parameters Timeout types.Duration `hcl:"timeout,optional" json:"timeout"` // Read timeout on HTTP requests }
Click to show internal directories.
Click to hide internal directories.