Documentation
¶
Index ¶
Constants ¶
View Source
const ( MAX_REQUEST_SIZE_MEMORY = 1 << 20 MAX_REQUEST_SIZE_TOTAL = 1 << 30 )
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 ¶
type HttpResponse struct { Header map[string]string Body []byte ContentReadCloser io.ReadCloser ContentReadSeekCloser io.ReadSeekCloser }
* 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.