22namespace http_field_parsers
84 return std::tie(this->token, this->transfer_parameters) ==
85 std::tie(
o.token,
o.transfer_parameters);
Utilities for parsing values of http-fields.
Information about parsing error.
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 as_result() noexcept
A factory function to create a as_result_consumer.
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...
auto to_lower() noexcept
A factory function to create a to_lower_transformer.
auto alternatives(Clauses &&... clauses)
A factory function to create an alternatives clause.
impl::params_with_value_producer_t params_with_value_p()
A factory of producer of parameter_with_mandatory_value_container.
auto token_p() noexcept
A factory function to create a token_producer.
auto expected_caseless_token_p(string_view_t token)
A factory function to create a producer that expect a token with specific value.
std::vector< parameter_with_mandatory_value_t > parameter_with_mandatory_value_container_t
A type of container for parameters with mandatory values.
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
Description of transfer-extension.
bool operator==(const transfer_extension_t &o) const noexcept
parameter_with_mandatory_value_container_t transfer_parameters
Tools for working with the value of Transfer-Encoding HTTP-field.
static auto make_parser()
A factory function for a parser of Transfer-Encoding value.
std::variant< known_transfer_coding_t, transfer_extension_t > value_t
Type for one value from Transfer-Encoding HTTP-field.
static 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.
static constexpr known_transfer_coding_t deflate() noexcept
std::vector< value_t > value_container_t
static constexpr known_transfer_coding_t compress() noexcept
known_transfer_coding_t
Enumeration for transfer-coding values from RFC7230.
static constexpr known_transfer_coding_t gzip() noexcept
static constexpr known_transfer_coding_t chunked() noexcept