Documentation
¶
Overview ¶
The `httpserver` task implements a server which can serve requests over HTTP, HTTPS and FCGI
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v1.4.2
type Config struct {
Listen string `hcl:"listen" description:"Network address and port to listen on, or path to file socket"`
TLS struct {
Key string `hcl:"key" description:"Path to private key (if provided, tls.cert is also required)"`
Cert string `hcl:"cert" description:"Path to certificate (if provided, tls.key is also required)"`
} `hcl:"tls"`
Timeout time.Duration `hcl:"timeout" description:"Read request timeout"`
Owner string `hcl:"owner" description:"User ID of the file socket (if listen is a file socket)"`
Group string `hcl:"group" description:"Group ID of the file socket (if listen is a file socket)"`
Router http.Handler `hcl:"router" description:"HTTP router for requests"`
}
Server configuration
func (Config) Description ¶ added in v1.4.2
Description returns the description of the service
Directories
¶
| Path | Synopsis |
|---|---|
|
Package fcgi implements the FastCGI protocol.
|
Package fcgi implements the FastCGI protocol. |
Click to show internal directories.
Click to hide internal directories.