RESTinio
Loading...
Searching...
No Matches
media-type.hpp
Go to the documentation of this file.
1/*
2 * RESTinio
3 */
4
12#pragma once
13
15
16namespace restinio
17{
18
19namespace http_field_parsers
20{
21
22//
23// media_type_value_t
24//
133
134} /* namespace http_field_parsers */
135
136} /* namespace restinio */
137
Utilities for parsing values of http-fields.
auto to_container()
A factory function to create a to_container_consumer.
auto symbol(char expected) noexcept
A factory function to create a clause that expects the speficied symbol, extracts it and then skips i...
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 skip() noexcept
A factory function to create a skip_consumer.
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.
auto not_clause(Clauses &&... clauses)
A factory function to create a not_clause.
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.
impl::params_with_value_producer_t params_with_value_p()
A factory of producer of parameter_with_mandatory_value_container.
Definition basics.hpp:1687
auto token_p() noexcept
A factory function to create a token_producer.
Definition basics.hpp:987
auto weight_p() noexcept
A factory function to create a producer for weight parameter.
Definition basics.hpp:1279
auto ows() noexcept
A factory function to create an OWS clause.
Definition basics.hpp:941
std::pair< std::string, std::string > parameter_with_mandatory_value_t
A type that describes a parameter with mandatory value.
Definition basics.hpp:1523
auto quoted_string_p() noexcept
A factory function to create a quoted_string_producer.
Definition basics.hpp:1014
std::vector< parameter_with_mandatory_value_t > parameter_with_mandatory_value_container_t
A type of container for parameters with mandatory values.
Definition basics.hpp:1533
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
Definition expected.hpp:18
Tools for working with media-type in HTTP-fields.
parameter_with_mandatory_value_container_t parameter_container_t
static expected_t< media_type_value_t, restinio::easy_parser::parse_error_t > try_parse(string_view_t what)
An attempt to parse media-type value.
parameter_with_mandatory_value_t parameter_t