RESTinio
|
Tools for working with the value of Accept-Charset HTTP-field. More...
#include <accept-charset.hpp>
Classes | |
struct | item_t |
Public Types | |
using | item_container_t = std::vector< item_t > |
Static Public Member Functions | |
static RESTINIO_NODISCARD auto | make_parser () |
A factory function for a parser of Accept-Charset value. More... | |
static RESTINIO_NODISCARD expected_t< accept_charset_value_t, restinio::easy_parser::parse_error_t > | try_parse (string_view_t what) |
An attempt to parse Accept-Charset HTTP-field. More... | |
Public Attributes | |
item_container_t | charsets |
Tools for working with the value of Accept-Charset HTTP-field.
This struct represents parsed value of HTTP-field Accept-Charset (see https://tools.ietf.org/html/rfc7231#section-5.3.3):
Accept-Charset = 1#( ( charset / "*" ) [ weight ] ) charset = token
charset
are converted to lower case during the parsing.Definition at line 40 of file accept-charset.hpp.
using restinio::http_field_parsers::accept_charset_value_t::item_container_t = std::vector< item_t > |
Definition at line 48 of file accept-charset.hpp.
|
inlinestatic |
A factory function for a parser of Accept-Charset value.
Definition at line 59 of file accept-charset.hpp.
|
inlinestatic |
An attempt to parse Accept-Charset HTTP-field.
Definition at line 78 of file accept-charset.hpp.
item_container_t restinio::http_field_parsers::accept_charset_value_t::charsets |
Definition at line 50 of file accept-charset.hpp.