Documentation ¶
Index ¶
Constants ¶
View Source
const (
REQUEST_SIZE = 1 << 20
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Name string Port string TLSDisabled bool TLSPort string TLSPrivateKey string TLSPublicKey string WebRoot string Index string MimeTypes map[string]string DefaultMime string ErrorMime string Timeouts Timeouts }
* Data structure for web server configuration.
type HttpRequest ¶
type HttpRequest struct { Protocol string Method string Path string Host string Params map[string]string Files map[string][]multipart.File Respond chan<- HttpResponse }
* Exchange format for HTTP requests.
type HttpResponse ¶
* Exchange format for HTTP responses.
type ProtocolTimeouts ¶
* Data structure representing protocol timeouts. * * All numbers are provided in seconds. * * A value of zero represents no timeout.
type Timeouts ¶
type Timeouts struct { HTTP ProtocolTimeouts TLS ProtocolTimeouts }
* Data structure representing timeouts for multiple protocols.
Click to show internal directories.
Click to hide internal directories.