|
RESTinio
|
Tools for working with the value of User-Agent HTTP-field. More...
#include <user-agent.hpp>
Classes | |
| struct | product_t |
| A type for holding an info about a product. More... | |
Public Types | |
| using | tail_item_t = restinio::variant_t< product_t, std::string > |
| A type for holding an info about a product or a comment. | |
Static Public Member Functions | |
| static RESTINIO_NODISCARD auto | make_parser () |
| A factory function for a parser of User-Agent value. | |
| static RESTINIO_NODISCARD expected_t< user_agent_value_t, restinio::easy_parser::parse_error_t > | try_parse (string_view_t what) |
| An attempt to parse User-Agent HTTP-field. | |
Public Attributes | |
| product_t | product |
| std::vector< tail_item_t > | tail |
Tools for working with the value of User-Agent HTTP-field.
This struct represents parsed value of HTTP-field User-Agent (see https://tools.ietf.org/html/rfc7231#section-5.5.3):
User-Agent = product *( RWS ( product / comment ) )
product = token ["/" product-version]
product-version = token
Definition at line 41 of file user-agent.hpp.
| using restinio::http_field_parsers::user_agent_value_t::tail_item_t = restinio::variant_t< product_t, std::string > |
A type for holding an info about a product or a comment.
Definition at line 59 of file user-agent.hpp.
|
inlinestatic |
A factory function for a parser of User-Agent value.
Definition at line 71 of file user-agent.hpp.
|
inlinestatic |
An attempt to parse User-Agent HTTP-field.
Definition at line 103 of file user-agent.hpp.
| product_t restinio::http_field_parsers::user_agent_value_t::product |
Definition at line 61 of file user-agent.hpp.
| std::vector< tail_item_t > restinio::http_field_parsers::user_agent_value_t::tail |
Definition at line 62 of file user-agent.hpp.