14 #include <restinio/helpers/http_field_parsers/basics.hpp> 16 #include <restinio/helpers/http_field_parsers/details/pct_encoded_symbols.hpp> 18 #include <restinio/variant.hpp> 575 m_to <<
'[' << n.v <<
']';
579 visit( host_dumper_t{ to }, rhv.host );
582 to <<
':' << *(rhv.port) << std::endl;
static RESTINIO_NODISCARD ipv6_address_t from_string(std::string v) noexcept
friend bool operator!=(const ipv6_address_t &a, const ipv6_address_t &b) noexcept
friend bool operator<(const ipv6_address_t &a, const ipv6_address_t &b) noexcept
std::ostream & operator<<(std::ostream &to, const raw_host_value_t &rhv)
friend bool operator==(const ipv4_address_t &a, const ipv4_address_t &b) noexcept
reg_name_t(std::string val) noexcept
ipv4_address_t(std::string val) noexcept
friend bool operator==(const reg_name_t &a, const reg_name_t &b) noexcept
friend bool operator!=(const reg_name_t &a, const reg_name_t &b) noexcept
optional_t< std::uint16_t > port
Optional port value.
RESTINIO_NODISCARD bool operator()(const char actual) const noexcept
static RESTINIO_NODISCARD ipv4_address_t from_string(std::string v) noexcept
RESTINIO_NODISCARD bool operator()(const char actual) const noexcept
RESTINIO_NODISCARD auto reg_name_p()
A factory for producer of reg-name value.
friend bool operator==(const ipv6_address_t &a, const ipv6_address_t &b) noexcept
friend bool operator<(const ipv4_address_t &a, const ipv4_address_t &b) noexcept
RESTINIO_NODISCARD auto try_parse_field(const generic_request_t< Extra_Data > &req, http_field_t field_id, string_view_t default_value=string_view_t{})
A helper function for extraction and parsing a value of HTTP-field.
ipv6_address_t(std::string val) noexcept
static RESTINIO_NODISCARD expected_t< raw_host_value_t, restinio::easy_parser::parse_error_t > try_parse(string_view_t what)
An attempt to parse Host HTTP-field.
friend bool operator<(const reg_name_t &a, const reg_name_t &b) noexcept
static RESTINIO_NODISCARD reg_name_t from_string(std::string v) 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 ...
friend bool operator!=(const ipv4_address_t &a, const ipv4_address_t &b) noexcept