boost::urls::url_base::set_encoded_authority
Set the authority
Synopsis
Declared in <include/boost/url/url_base.hpp>
url_base&
set_encoded_authority(pct_string_view s);
Description
This function sets the authority to the specified string. The string may contain percent‐escapes.
assert( url().set_encoded_authority( "My%20Computer" ).has_authority() );
Exceptions
Name | Thrown on |
---|---|
|
The string contains an invalid percent‐encoding. |
See Also
remove_authority.
Created with MrDocs