19namespace http_field_parsers
expected_t< typename Producer::result_type, parse_error_t > try_parse(string_view_t from, Producer producer)
Perform the parsing of the specified content by using specified value producer.
auto maybe(Clauses &&... clauses)
A factory function to create an optional clause.
std::vector< parameter_with_optional_value_t > parameter_with_optional_value_container_t
A type of container for parameters with optional values.
std::pair< std::string, std::optional< std::string > > parameter_with_optional_value_t
A type that describes a parameter with optional value.
auto weight_p() noexcept
A factory function to create a producer for weight parameter.
impl::params_with_opt_value_producer_t params_with_opt_value_p()
A factory of producer of parameter_with_optional_value_container.
run_on_this_thread_settings_t< Traits > on_this_thread()
A special marker for the case when http_server must be run on the context of the current thread.
std::string_view string_view_t
nonstd::expected< T, E > expected_t
std::optional< qvalue_t > weight
media_type_value_t media_type
accept_ext_container_t accept_params
parameter_with_optional_value_container_t accept_ext_container_t
parameter_with_optional_value_t accept_ext_t
Tools for working with the value of Accept HTTP-field.
static auto make_parser()
A factory function for a parser of Accept value.
static expected_t< accept_value_t, restinio::easy_parser::parse_error_t > try_parse(string_view_t what)
An attempt to parse Accept HTTP-field.
std::vector< item_t > item_container_t