23namespace http_field_parsers
85 return std::tie(this->token, this->transfer_parameters) ==
86 std::tie(o.token, o.transfer_parameters);
109 return produce< transfer_encoding_value_t >(
110 non_empty_comma_separated_list_p< value_container_t >(
123 produce< transfer_extension_t >(
Utilities for parsing values of http-fields.
Information about parsing error.
#define RESTINIO_NODISCARD
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.
RESTINIO_NODISCARD auto just_result(T value) noexcept(noexcept(impl::just_result_consumer_t< T >{value}))
A special consumer that replaces the produced value by a value specified by a user and sets that user...
RESTINIO_NODISCARD auto as_result() noexcept
A factory function to create a as_result_consumer.
RESTINIO_NODISCARD auto to_lower() noexcept
A factory function to create a to_lower_transformer.
RESTINIO_NODISCARD auto alternatives(Clauses &&... clauses)
A factory function to create an alternatives clause.
RESTINIO_NODISCARD impl::params_with_value_producer_t params_with_value_p()
A factory of producer of parameter_with_mandatory_value_container.
std::vector< parameter_with_mandatory_value_t > parameter_with_mandatory_value_container_t
A type of container for parameters with mandatory values.
RESTINIO_NODISCARD auto token_p() noexcept
A factory function to create a token_producer.
RESTINIO_NODISCARD auto expected_caseless_token_p(string_view_t token)
A factory function to create a producer that expect a token with specific value.
nonstd::string_view string_view_t
nonstd::expected< T, E > expected_t
Description of transfer-extension.
parameter_with_mandatory_value_container_t transfer_parameters
RESTINIO_NODISCARD bool operator==(const transfer_extension_t &o) const noexcept
Tools for working with the value of Transfer-Encoding HTTP-field.
static RESTINIO_NODISCARD constexpr known_transfer_coding_t compress() noexcept
std::vector< value_t > value_container_t
static RESTINIO_NODISCARD constexpr known_transfer_coding_t gzip() noexcept
static RESTINIO_NODISCARD constexpr known_transfer_coding_t chunked() noexcept
known_transfer_coding_t
Enumeration for transfer-coding values from RFC7230.
static RESTINIO_NODISCARD constexpr known_transfer_coding_t deflate() noexcept
static RESTINIO_NODISCARD auto make_parser()
A factory function for a parser of Transfer-Encoding value.
static RESTINIO_NODISCARD expected_t< transfer_encoding_value_t, restinio::easy_parser::parse_error_t > try_parse(string_view_t what)
An attempt to parse Transfer-Encoding HTTP-field.