boost::urls::url_view_base::encoded_zone_id
Return the IPv6 Zone ID
Synopsis
Declared in <boost/url/url_view_base.hpp>
pct_string_view
encoded_zone_id() const noexcept;
Description
If the host type is host_type::ipv6
, this function returns the Zone ID as a string. Otherwise an empty string is returned. The returned string may contain percent escapes.
BNF
host = IP-literal / IPv4address / reg-name
IP-literal = "[" ( IPv6address / IPv6addrz / IPvFuture ) "]"
ZoneID = 1*( unreserved / pct-encoded )
IPv6addrz = IPv6address "%25" ZoneID
Return Value
The Zone ID as a percent‐encoded string.
Created with MrDocs