boost::urls::static_url::set_encoded_authority
Set the authority
Synopsis
Declared in <boost/url/static_url.hpp>
static_url&
set_encoded_authority(pct_string_view s);
Description
This function sets the authority to the specified string. The string may contain percent‐escapes.
Exception Safety
Strong guarantee. Calls to allocate may throw. Exceptions thrown on invalid input.
BNF
authority = [ userinfo "@" ] host [ ":" port ]
userinfo = *( unreserved / pct-encoded / sub-delims / ":" )
host = IP-literal / IPv4address / reg-name
port = *DIGIT
See Also
remove_authority
.
Created with MrDocs