- addListener
ServerinoConfig addListener(string address, ushort port)
- disableKeepAlive
ServerinoConfig disableKeepAlive()
Enable/Disable keep-alive for http/1.1
- disableRemoteIp
ServerinoConfig disableRemoteIp()
- enableKeepAlive
ServerinoConfig enableKeepAlive(bool enable, Duration timeout)
ServerinoConfig enableKeepAlive(Duration timeout)
Enable/Disable keep-alive for http/1.1
- enableRemoteIp
ServerinoConfig enableRemoteIp(bool enable)
- setHttpTimeout
ServerinoConfig setHttpTimeout(Duration dur)
How long the socket will wait for a request after the connection?
- setListenerBacklog
ServerinoConfig setListenerBacklog(int val)
Max number of pending connections
- setLogLevel
ServerinoConfig setLogLevel(LogLevel level)
Min log level to display. Default == LogLevel.all
- setMaxRequestSize
ServerinoConfig setMaxRequestSize(size_t bytes)
Max size of a request. If a request is bigger than this value, error 413 is returned.
- setMaxRequestTime
ServerinoConfig setMaxRequestTime(Duration dur)
Max time a request can take. After this time, worker is terminated.
- setMaxWorkerIdling
ServerinoConfig setMaxWorkerIdling(Duration dur)
Max time a worker can be idle. After this time, worker is terminated.
- setMaxWorkerLifetime
ServerinoConfig setMaxWorkerLifetime(Duration dur)
Max time a worker can live. After this time, worker is terminated.
- setMaxWorkers
ServerinoConfig setMaxWorkers(size_t val)
- setMinWorkers
ServerinoConfig setMinWorkers(size_t val)
- setReturnCode
ServerinoConfig setReturnCode(int retCode)
Every value != 0 is used to terminate server immediatly.
- setWorkerGroup
ServerinoConfig setWorkerGroup(string s)
- setWorkerUser
ServerinoConfig setWorkerUser(string s)
- setWorkers
ServerinoConfig setWorkers(size_t val)
Same as setMaxWorkers(v); setMinWorkers(v);
- validate
void validate()
Undocumented in source. Be warned that the author may not have intended to support it.
Struct used to setup serverino. You must return this struct from a function with @onServerInit UDA attached.