|
RESTinio
|
Classes | |
| struct | sub_delims_predicate_t |
| A preducate for symbol_producer_template that checks that a symbol is sub-delims symbol from RCF3986. More... | |
| struct | unreserved_predicate_t |
| A preducate for symbol_producer_template that checks that a symbol is unreserved symbol from RCF3986. More... | |
Functions | |
| RESTINIO_NODISCARD auto | unreserved_symbol_p () |
| A factory for producer that extracts unreserved symbols. | |
| RESTINIO_NODISCARD auto | sub_delims_symbol_p () |
| A factory for producer that extracts sub-delims symbols. | |
| RESTINIO_NODISCARD auto | ipv4_address_p () |
| A factory for producer of IPv4address value. | |
| RESTINIO_NODISCARD auto | ipv6_address_p () |
| A factory for producer of ipv6_address value. | |
| RESTINIO_NODISCARD auto | reg_name_p () |
| A factory for producer of reg-name value. | |
|
inline |
A factory for producer of IPv4address value.
Produces std::string.
Uses the following grammar (see https://tools.ietf.org/html/rfc3986#appendix-A):
IPv4address = dec-octet "." dec-octet "." dec-octet "." dec-octet
dec-octet = DIGIT ; 0-9
/ %x31-39 DIGIT ; 10-99
/ "1" 2DIGIT ; 100-199
/ "2" %x30-34 DIGIT ; 200-249
/ "25" %x30-35 ; 250-255
|
inline |
A factory for producer of ipv6_address value.
Produces std::string.
Uses the following grammar (see https://tools.ietf.org/html/rfc3986#appendix-A):
IPv6address = 6( h16 ":" ) ls32
/ "::" 5( h16 ":" ) ls32
/ [ h16 ] "::" 4( h16 ":" ) ls32
/ [ *1( h16 ":" ) h16 ] "::" 3( h16 ":" ) ls32
/ [ *2( h16 ":" ) h16 ] "::" 2( h16 ":" ) ls32
/ [ *3( h16 ":" ) h16 ] "::" h16 ":" ls32
/ [ *4( h16 ":" ) h16 ] "::" ls32
/ [ *5( h16 ":" ) h16 ] "::" h16
/ [ *6( h16 ":" ) h16 ] "::"
h16 = 1*4HEXDIG
ls32 = ( h16 ":" h16 ) / IPv4address
|
inline |
A factory for producer of reg-name value.
Produces std::string.
reg-name = *( unreserved / pct-encoded / sub-delims )but this producer uses more strict grammar (because empty reg-name in Host HTTP-field has no sense):
reg-name = 1*( unreserved / pct-encoded / sub-delims )
|
inline |
A factory for producer that extracts sub-delims symbols.
See: https://tools.ietf.org/html/rfc3986#appendix-A
|
inline |
A factory for producer that extracts unreserved symbols.
See: https://tools.ietf.org/html/rfc3986#appendix-A