|
|
unsigned short | port |
| | Port number to use. Defaults to 80 for HTTP and 443 for HTTPS.
|
| |
| std::size_t | thread_pool_size = 1 |
| |
|
long | timeout_request = 5 |
| | Timeout on request handling. Defaults to 5 seconds.
|
| |
|
long | timeout_content = 300 |
| | Timeout on content handling. Defaults to 300 seconds.
|
| |
| std::size_t | max_request_streambuf_size = std::numeric_limits<std::size_t>::max() |
| |
| std::string | address |
| |
|
bool | reuse_address = true |
| | Set to false to avoid binding the socket to an address that is already in use. Defaults to true.
|
| |
|
|
class | ServerBase< socket_type > |
| |
template<class socket_type>
IPv4 address in dotted decimal form or IPv6 address in hexadecimal notation. If empty, the address will be any address.
template<class socket_type>
| std::size_t SimpleWeb::ServerBase< socket_type >::Config::max_request_streambuf_size = std::numeric_limits<std::size_t>::max() |
Maximum size of request stream buffer. Defaults to architecture maximum. Reaching this limit will result in a message_size error code.
template<class socket_type>
If io_service is not set, number of threads that the server will use when start() is called. Defaults to 1 thread.
The documentation for this class was generated from the following file: