restinio::run_on_this_thread_settings_t< Traits > Class Template Referencefinal

Settings for the case when http_server must be run on the context of the current thread. More...

`#include <http_server_run.hpp>`

Inheritance diagram for restinio::run_on_this_thread_settings_t< Traits >:

## Private Types

using | base_type_t = basic_server_settings_t< run_on_this_thread_settings_t< Traits >, Traits >

## Additional Inherited Members

Public Types inherited from restinio::basic_server_settings_t< run_on_this_thread_settings_t< Traits >, Traits >
using | request_handler_t = request_handler_type_from_traits_t< Traits >
| Request handler. More...
using | timer_manager_t = typename Traits::timer_manager_t
| Timers manager. More...
using | timer_factory_t = typename timer_manager_t::factory_t
using | logger_t = typename Traits::logger_t
| Logger. More...
using | extra_data_factory_t = typename Traits::extra_data_factory_t
| The actual type of extra-data-factory. More...
using | extra_data_factory_handle_t = std::shared_ptr< extra_data_factory_t >
| Type of shared-pointer to extra-data-factory. More...
Public Member Functions inherited from restinio::basic_server_settings_t< run_on_this_thread_settings_t< Traits >, Traits >
| basic_server_settings_t (std::uint16_t port=8080, asio_ns::ip::tcp protocol=asio_ns::ip::tcp::v4())
run_on_this_thread_settings_t< Traits > & | buffer_size (std::size_t s) &
| Size of buffer for io operations. More...
run_on_this_thread_settings_t< Traits > && | buffer_size (std::size_t s) &&
std::size_t | buffer_size () const
run_on_this_thread_settings_t< Traits > & | connection_state_listener (std::shared_ptr< typename Traits::connection_state_listener_t > listener) &
| Setter for connection state listener. More...
run_on_this_thread_settings_t< Traits > && | connection_state_listener (std::shared_ptr< typename Traits::connection_state_listener_t > listener) &&
| Setter for connection state listener. More...
const std::shared_ptr< typename Traits::connection_state_listener_t > & | connection_state_listener () const noexcept
| Get reference to connection state listener. More...
void | ensure_valid_connection_state_listener ()
| Internal method for checking presence of state listener object. More...
run_on_this_thread_settings_t< Traits > & | ip_blocker (std::shared_ptr< typename Traits::ip_blocker_t > blocker) &
| Setter for IP-blocker. More...
run_on_this_thread_settings_t< Traits > && | ip_blocker (std::shared_ptr< typename Traits::ip_blocker_t > blocker) &&
| Setter for IP-blocker. More...
const std::shared_ptr< typename Traits::ip_blocker_t > & | ip_blocker () const noexcept
| Get reference to IP-blocker. More...
void | ensure_valid_ip_blocker ()
| Internal method for checking presence of IP-blocker object. More...
run_on_this_thread_settings_t< Traits > & | acceptor_post_bind_hook (acceptor_post_bind_hook_t hook) &
| A setter for post-bind callback. More...
run_on_this_thread_settings_t< Traits > && | acceptor_post_bind_hook (acceptor_post_bind_hook_t hook) &&
| A setter for post-bind callback. More...
RESTINIO_NODISCARD acceptor_post_bind_hook_t | giveaway_acceptor_post_bind_hook ()
| A getter for post-bind callback. More...
RESTINIO_NODISCARD const incoming_http_msg_limits_t & | incoming_http_msg_limits () const noexcept
| Getter of optional limits for incoming HTTP messages. More...
run_on_this_thread_settings_t< Traits > & | incoming_http_msg_limits (const incoming_http_msg_limits_t &limits) &noexcept
| Setter of optional limits for incoming HTTP messages. More...
run_on_this_thread_settings_t< Traits > && | incoming_http_msg_limits (const incoming_http_msg_limits_t &limits) &&noexcept
| Setter of optional limits for incoming HTTP messages. More...
run_on_this_thread_settings_t< Traits > & | max_parallel_connections (std::size_t value) &noexcept
| Setter for connection count limit. More...
run_on_this_thread_settings_t< Traits > && | max_parallel_connections (std::size_t value) &&noexcept
| Setter for connection count limit. More...
std::size_t | max_parallel_connections () const noexcept
run_on_this_thread_settings_t< Traits > & | port (std::uint16_t p) &
| Server endpoint. More...
run_on_this_thread_settings_t< Traits > && | port (std::uint16_t p) &&
RESTINIO_NODISCARD std::uint16_t | port () const
run_on_this_thread_settings_t< Traits > & | protocol (asio_ns::ip::tcp p) &
run_on_this_thread_settings_t< Traits > && | protocol (asio_ns::ip::tcp p) &&
RESTINIO_NODISCARD asio_ns::ip::tcp | protocol () const
run_on_this_thread_settings_t< Traits > & | address (std::string addr) &
run_on_this_thread_settings_t< Traits > && | address (std::string addr) &&
run_on_this_thread_settings_t< Traits > & | address (asio_ns::ip::address addr) &
run_on_this_thread_settings_t< Traits > && | address (asio_ns::ip::address addr) &&
RESTINIO_NODISCARD const details::address_variant_t & | address () const
run_on_this_thread_settings_t< Traits > & | read_next_http_message_timelimit (std::chrono::steady_clock::duration d) &
| } More...
run_on_this_thread_settings_t< Traits > && | read_next_http_message_timelimit (std::chrono::steady_clock::duration d) &&
std::chrono::steady_clock::duration | read_next_http_message_timelimit () const
run_on_this_thread_settings_t< Traits > & | write_http_response_timelimit (std::chrono::steady_clock::duration d) &
| A period of time wait for response to be written to socket. More...
run_on_this_thread_settings_t< Traits > && | write_http_response_timelimit (std::chrono::steady_clock::duration d) &&
std::chrono::steady_clock::duration | write_http_response_timelimit () const
run_on_this_thread_settings_t< Traits > & | handle_request_timeout (std::chrono::steady_clock::duration d) &
| A period of time that is given for a handler to create response. More...
run_on_this_thread_settings_t< Traits > && | handle_request_timeout (std::chrono::steady_clock::duration d) &&
std::chrono::steady_clock::duration | handle_request_timeout () const
run_on_this_thread_settings_t< Traits > & | max_pipelined_requests (std::size_t mpr) &
| Max pipelined requests able to receive on single connection. More...
run_on_this_thread_settings_t< Traits > && | max_pipelined_requests (std::size_t mpr) &&
std::size_t | max_pipelined_requests () const
run_on_this_thread_settings_t< Traits > & | acceptor_options_setter (acceptor_options_setter_t aos) &
| Acceptor options setter. More...
run_on_this_thread_settings_t< Traits > && | acceptor_options_setter (acceptor_options_setter_t aos) &&
std::unique_ptr< acceptor_options_setter_t > | acceptor_options_setter ()
run_on_this_thread_settings_t< Traits > & | socket_options_setter (socket_options_setter_t sos) &
| Socket options setter. More...
run_on_this_thread_settings_t< Traits > && | socket_options_setter (socket_options_setter_t sos) &&
std::unique_ptr< socket_options_setter_t > | socket_options_setter ()
run_on_this_thread_settings_t< Traits > & | concurrent_accepts_count (std::size_t n) &
| Max number of running concurrent accepts. More...
run_on_this_thread_settings_t< Traits > && | concurrent_accepts_count (std::size_t n) &&
std::size_t | concurrent_accepts_count () const
run_on_this_thread_settings_t< Traits > & | separate_accept_and_create_connect (bool do_separate) &noexcept
| Do separate an accept operation and connection instantiation. More...
run_on_this_thread_settings_t< Traits > && | separate_accept_and_create_connect (bool do_separate) &&noexcept
bool | separate_accept_and_create_connect () const noexcept
run_on_this_thread_settings_t< Traits > & | cleanup_func (Func &&func) &
| Cleanup function. More...
run_on_this_thread_settings_t< Traits > && | cleanup_func (Func &&func) &&
RESTINIO_NODISCARD cleanup_functor_t | giveaway_cleanup_func ()
run_on_this_thread_settings_t< Traits > & | request_handler (std::unique_ptr< request_handler_t > handler) &
run_on_this_thread_settings_t< Traits > & | request_handler (Params &&... params) &
run_on_this_thread_settings_t< Traits > && | request_handler (Params &&... params) &&
std::unique_ptr< request_handler_t > | request_handler ()
run_on_this_thread_settings_t< Traits > & | timer_manager (Params &&... params) &
run_on_this_thread_settings_t< Traits > && | timer_manager (Params &&... params) &&
std::unique_ptr< timer_factory_t > | timer_factory ()
run_on_this_thread_settings_t< Traits > & | logger (Params &&... params) &
run_on_this_thread_settings_t< Traits > && | logger (Params &&... params) &&
std::unique_ptr< logger_t > | logger ()
run_on_this_thread_settings_t< Traits > & | extra_data_factory (extra_data_factory_handle_t factory) &
| Setter for extra-data-factory. More...
run_on_this_thread_settings_t< Traits > && | extra_data_factory (extra_data_factory_handle_t factory) &&
| Setter for extra-data-factory. More...
RESTINIO_NODISCARD extra_data_factory_handle_t | giveaway_extra_data_factory () const noexcept
| Extractor for extra-data-factory. More...
Public Member Functions inherited from restinio::socket_type_dependent_settings_t< run_on_this_thread_settings_t< Traits >, Traits::stream_socket_t >
| socket_type_dependent_settings_t () noexcept=default
| socket_type_dependent_settings_t (const socket_type_dependent_settings_t &) noexcept=default
| socket_type_dependent_settings_t (socket_type_dependent_settings_t &&) noexcept=default
socket_type_dependent_settings_t & | operator= (const socket_type_dependent_settings_t &) noexcept=default
socket_type_dependent_settings_t & | operator= (socket_type_dependent_settings_t &&) noexcept=delete
Protected Member Functions inherited from restinio::socket_type_dependent_settings_t< run_on_this_thread_settings_t< Traits >, Traits::stream_socket_t >
| ~socket_type_dependent_settings_t () noexcept=default
Protected Member Functions inherited from restinio::connection_state_listener_holder_t< Traits::connection_state_listener_t >
void | check_valid_connection_state_listener_pointer () const
| Checks that pointer to state listener is not null. More...
Protected Member Functions inherited from restinio::ip_blocker_holder_t< Traits::ip_blocker_t >
void | check_valid_ip_blocker_pointer () const
| Checks that pointer to IP-blocker is not null. More...
Protected Member Functions inherited from restinio::details::max_parallel_connections_holder_t< connection_count_limit_types< Traits >::limiter_t >
std::size_t | max_parallel_connections () const noexcept
void | set_max_parallel_connections (std::size_t v) noexcept
Protected Attributes inherited from restinio::connection_state_listener_holder_t< Traits::connection_state_listener_t >
std::shared_ptr< Traits::connection_state_listener_t > | m_connection_state_listener
Protected Attributes inherited from restinio::ip_blocker_holder_t< Traits::ip_blocker_t >
std::shared_ptr< Traits::ip_blocker_t > | m_ip_blocker
Protected Attributes inherited from restinio::details::max_parallel_connections_holder_t< connection_count_limit_types< Traits >::limiter_t >
std::size_t | m_max_parallel_connections
| Actual value of the limit. More...
Static Protected Attributes inherited from restinio::connection_state_listener_holder_t< Traits::connection_state_listener_t >
static constexpr bool | has_actual_connection_state_listener
Static Protected Attributes inherited from restinio::ip_blocker_holder_t< Traits::ip_blocker_t >
static constexpr bool | has_actual_ip_blocker
Static Protected Attributes inherited from restinio::details::max_parallel_connections_holder_t< connection_count_limit_types< Traits >::limiter_t >
static constexpr bool | has_actual_max_parallel_connections

## Detailed Description

template<typename Traits>
class restinio::run_on_this_thread_settings_t< Traits >

Settings for the case when http_server must be run on the context of the current thread.

Note
  Shouldn't be used directly. Only as result of on_this_thread() function as parameter for run().

Definition at line 86 of file http_server_run.hpp.

## Member Typedef Documentation

## base_type_t

template<typename Traits >

using restinio::run_on_this_thread_settings_t< Traits >::base_type_t = basic_server_settings_t< run_on_this_thread_settings_t<Traits>, Traits>

private

Definition at line 91 of file http_server_run.hpp.

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

- restinio/http_server_run.hpp