13 #include <restinio/asio_include.hpp> 51 using request_id_t =
unsigned int;
65 if( response_parts_attr_t::not_final_parts == attr )
66 o <<
"not_final_parts";
85 if( response_connection_attr_t::connection_keepalive == attr )
86 o <<
"connection_keepalive";
88 o <<
"connection_close";
96 if( should_keep_alive )
119 return o <<
"{ " << flags.m_response_parts <<
", " 120 << flags.m_response_connection <<
" }";
134 template<
typename T >
135 using nullable_pointer_t = T*;
149 template<
typename T >
150 using not_null_pointer_t = T*;
response_output_flags_t(response_parts_attr_t response_parts, response_connection_attr_t response_connection) noexcept
std::ostream & operator<<(std::ostream &o, const response_output_flags_t &flags)
This response says to close connection.
Final parts (response ands with these parts).
This response says to keep connection.
response_connection_attr_t m_response_connection
Request wasn't accepted for handling.
response_connection_attr_t response_connection_attr(bool should_keep_alive)
response_connection_attr_t
Attribute for parts.
request_handling_status_t
Request handling status.
std::ostream & operator<<(std::ostream &o, response_parts_attr_t attr)
std::ostream & operator<<(std::ostream &o, response_connection_attr_t attr)
response_parts_attr_t m_response_parts
Intermediate parts (more parts of response to follow).
constexpr request_handling_status_t request_rejected() noexcept
Request accepted for handling.
response_parts_attr_t
Attribute for parts.
Response output flags for buffers commited to response-coordinator.
constexpr request_handling_status_t request_accepted() noexcept
std::enable_if< std::is_same< Parameter_Container, query_string_params_t >::value||std::is_same< Parameter_Container, router::route_params_t >::value, optional_t< Value_Type > >::type opt_value(const Parameter_Container ¶ms, string_view_t key)
Gets the value of a parameter specified by key wrapped in optional_t<Value_Type> if parameter exists ...