21namespace http_field_parsers
24namespace range_details
98 std::vector< byte_range_spec_t<T> >
ranges;
125template<
typename T >
149template<
typename T >
208template<
typename T >
285template<
typename T >
455 using namespace range_details;
461 make_other_ranges_specifier_parser() >>
Utilities for parsing values of http-fields.
auto to_container()
A factory function to create a to_container_consumer.
auto force_only_this_alternative(Clauses &&... clauses)
An alternative that should be parsed correctly or the parsing of the whole alternatives clause should...
auto symbol(char expected) noexcept
A factory function to create a clause that expects the speficied symbol, extracts it and then skips i...
auto exact(string_view_t fragment)
A factory function that creates an instance of exact_fragment clause.
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 alternatives(Clauses &&... clauses)
A factory function to create an alternatives clause.
auto produce(Clauses &&... clauses)
A factory function to create a producer that creates an instance of the target type by using specifie...
constexpr std::size_t N
A special marker that means infinite repetitions.
auto repeat(std::size_t min_occurences, std::size_t max_occurences, Clauses &&... clauses)
A factory function to create repetitor of subclauses.
auto sequence(Clauses &&... clauses)
A factory function to create a sequence of subclauses.
auto make_other_ranges_specifier_parser()
Factory for creation of a parser for other_ranges_specifier values.
auto make_byte_range_spec_parser()
Factory for creation of a parser for byte_range_spec values.
auto make_bytes_prefix_parser()
Factory for a parser of 'bytes=' prefix.
std::variant< byte_ranges_specifier_t< T >, other_ranges_specifier_t > value_t
Variant type for holding parsed value of Range HTTP-field.
std::variant< double_ended_range_t< T >, open_ended_range_t< T >, suffix_length_t< T > > byte_range_spec_t
Variant type for all possible cases of specification for one range.
auto make_byte_ranges_specifier_parser()
Factory for creation of a parser for byte_ranges_specifier values.
auto vchar_symbol_p()
A factory for producer of VCHAR symbols.
auto token_p() noexcept
A factory function to create a token_producer.
auto non_empty_comma_separated_list_p(Element_Producer element)
A factory for a producer that handles non-empty list of comma-separated 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
A struct that holds a container of byte_range_specs.
std::vector< byte_range_spec_t< T > > ranges
Value of range for the case where both ends of the range are defined.
Value of range for the case where only left border of the range is defined.
A description of a range value of units those are not "bytes".
Value of range for the case where only length of range's suffix is defined.
Tools for working with the value of Range HTTP-field.
static expected_t< range_value_t, restinio::easy_parser::parse_error_t > try_parse(string_view_t what)
An attempt to parse Range HTTP-field.
static auto make_parser()
A factory function for a parser of Range value.
range_details::value_t< T > value_t
Variant type for holding parsed value of Range HTTP-field.
range_details::byte_range_spec_t< T > byte_range_spec_t
Variant type for all possible cases of specification for one range.