RESTinio
Loading...
Searching...
No Matches
accept.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// accept_value_t
24//
104
105} /* namespace http_field_parsers */
106
107} /* namespace restinio */
108
Stuff related to Media-Type value in HTTP-fields.
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 maybe(Clauses &&... clauses)
A factory function to create an optional clause.
std::vector< parameter_with_optional_value_t > parameter_with_optional_value_container_t
A type of container for parameters with optional values.
Definition basics.hpp:1708
std::pair< std::string, std::optional< std::string > > parameter_with_optional_value_t
A type that describes a parameter with optional value.
Definition basics.hpp:1697
auto weight_p() noexcept
A factory function to create a producer for weight parameter.
Definition basics.hpp:1279
impl::params_with_opt_value_producer_t params_with_opt_value_p()
A factory of producer of parameter_with_optional_value_container.
Definition basics.hpp:1865
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
parameter_with_optional_value_container_t accept_ext_container_t
Definition accept.hpp:57
parameter_with_optional_value_t accept_ext_t
Definition accept.hpp:55
Tools for working with the value of Accept HTTP-field.
Definition accept.hpp:52
static auto make_parser()
A factory function for a parser of Accept value.
Definition accept.hpp:75
static expected_t< accept_value_t, restinio::easy_parser::parse_error_t > try_parse(string_view_t what)
An attempt to parse Accept HTTP-field.
Definition accept.hpp:99
Tools for working with media-type in HTTP-fields.