RESTinio
|
Tools for working with the value of Content-Type HTTP-field. More...
#include <content-type.hpp>
Static Public Member Functions | |
static RESTINIO_NODISCARD auto | make_parser () |
A factory function for a parser of Content-Type value. More... | |
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. More... | |
Public Attributes | |
media_type_value_t | media_type |
Tools for working with the value of Content-Type HTTP-field.
This struct represents parsed value of HTTP-field Content-Type (see https://tools.ietf.org/html/rfc7231#section-3.1.1.5):
Content-Type = media-type
Where media-type
is repesented by media_type_value_t.
Definition at line 38 of file content-type.hpp.
|
inlinestatic |
A factory function for a parser of Content-Type value.
Definition at line 49 of file content-type.hpp.
|
inlinestatic |
An attempt to parse Content-Encoding HTTP-field.
Definition at line 64 of file content-type.hpp.
media_type_value_t restinio::http_field_parsers::content_type_value_t::media_type |
Definition at line 40 of file content-type.hpp.