|
RESTinio
|
Tools for working with the raw value of Host HTTP-field. More...
#include <host.hpp>
Classes | |
| struct | ipv4_address_t |
| struct | ipv6_address_t |
| struct | reg_name_t |
Public Types | |
| using | host_value_t = variant_t< reg_name_t, ipv4_address_t, ipv6_address_t > |
Static Public Member Functions | |
| static RESTINIO_NODISCARD auto | make_parser () |
| A factory function for a parser of Host value. | |
| static RESTINIO_NODISCARD expected_t< raw_host_value_t, restinio::easy_parser::parse_error_t > | try_parse (string_view_t what) |
| An attempt to parse Host HTTP-field. | |
Public Attributes | |
| host_value_t | host |
| optional_t< std::uint16_t > | port |
| Optional port value. | |
Tools for working with the raw value of Host HTTP-field.
This struct represents parsed value of HTTP-field Host with out advanced processing of parsed value (like decoding percent-encoded symbols into UTF-8 byte sequences and transforming string representation of IP addresses into internal form).
See https://tools.ietf.org/html/rfc3986#appendix-A.
|
inlinestatic |
|
inlinestatic |
| host_value_t restinio::http_field_parsers::raw_host_value_t::host |
| optional_t<std::uint16_t> restinio::http_field_parsers::raw_host_value_t::port |