Configuration class used to set various options when constructing and http_listener instance.
More...
#include <http_listener.h>
Configuration class used to set various options when constructing and http_listener instance.
web::http::experimental::listener::http_listener_config::http_listener_config |
( |
| ) |
|
|
inline |
web::http::experimental::listener::http_listener_config::http_listener_config |
( |
const http_listener_config & |
other | ) |
|
|
inline |
Copy constructor.
- Parameters
-
web::http::experimental::listener::http_listener_config::http_listener_config |
( |
http_listener_config && |
other | ) |
|
|
inline |
Move constructor.
- Parameters
-
const std::function<void(boost::asio::ssl::context&)>& web::http::experimental::listener::http_listener_config::get_ssl_context_callback |
( |
| ) |
const |
|
inline |
Get the callback of ssl context
- Returns
- The function defined by the user of http_listener_config to configure a ssl context.
void web::http::experimental::listener::http_listener_config::set_ssl_context_callback |
( |
const std::function< void(boost::asio::ssl::context &)> & |
ssl_context_callback | ) |
|
|
inline |
Set the callback of ssl context
- Parameters
-
ssl_context_callback | The function to configure a ssl context which will setup https connections. |
void web::http::experimental::listener::http_listener_config::set_timeout |
( |
utility::seconds |
timeout | ) |
|
|
inline |
Set the timeout
- Parameters
-
timeout | The timeout (in seconds) used for each send and receive operation on the client. |
utility::seconds web::http::experimental::listener::http_listener_config::timeout |
( |
| ) |
const |
|
inline |
Get the timeout
- Returns
- The timeout (in seconds).
The documentation for this class was generated from the following file: