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.
Tools for working with the value of Content-Type HTTP-field.
static RESTINIO_NODISCARD expected_t< content_type_value_t, restinio::easy_parser::parse_error_t > try_parse(string_view_t what)
An attempt to parse Content-Encoding HTTP-field.
static RESTINIO_NODISCARD auto make_parser()
A factory function for a parser of Content-Type value.
media_type_value_t media_type