identt
Public Attributes | Friends | List of all members
identt::http::HttpServerBase< socket_type >::Config Class Reference

Public Attributes

unsigned short port
 Port number to use. Defaults to 80 for HTTP and 443 for HTTPS. Set to 0 get an assigned port.
 
long timeout_request = 5
 If io_service is not set, number of threads that the server will use when start() is called. More...
 
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()
 Maximum size of request stream buffer. More...
 
std::string address
 IPv4 address in dotted decimal form or IPv6 address in hexadecimal notation. More...
 
bool reuse_address = true
 Set to false to avoid binding the socket to an address that is already in use. Defaults to true.
 
bool fast_open = false
 Make use of RFC 7413 or TCP Fast Open (TFO)
 

Friends

class HttpServerBase< socket_type >
 

Member Data Documentation

§ address

template<class socket_type>
std::string identt::http::HttpServerBase< socket_type >::Config::address

IPv4 address in dotted decimal form or IPv6 address in hexadecimal notation.

If empty, the address will be any address.

§ max_request_streambuf_size

template<class socket_type>
std::size_t identt::http::HttpServerBase< 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.

§ timeout_request

template<class socket_type>
long identt::http::HttpServerBase< socket_type >::Config::timeout_request = 5

If io_service is not set, number of threads that the server will use when start() is called.

Timeout on request handling. Defaults to 5 seconds.


The documentation for this class was generated from the following file: