19namespace http_field_parsers
79 return produce< accept_value_t >(
80 maybe_empty_comma_separated_list_p< item_container_t >(
#define RESTINIO_NODISCARD
RESTINIO_NODISCARD auto maybe(Clauses &&... clauses)
A factory function to create an optional clause.
RESTINIO_NODISCARD 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.
std::pair< std::string, restinio::optional_t< std::string > > parameter_with_optional_value_t
A type that describes a parameter with optional value.
RESTINIO_NODISCARD impl::params_with_opt_value_producer_t params_with_opt_value_p()
A factory of producer of parameter_with_optional_value_container.
std::vector< parameter_with_optional_value_t > parameter_with_optional_value_container_t
A type of container for parameters with optional values.
RESTINIO_NODISCARD auto weight_p() noexcept
A factory function to create a producer for weight parameter.
nonstd::string_view string_view_t
nonstd::expected< T, E > expected_t
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
restinio::optional_t< qvalue_t > weight
Tools for working with the value of Accept HTTP-field.
static RESTINIO_NODISCARD auto make_parser()
A factory function for a parser of Accept value.
static RESTINIO_NODISCARD 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