boost::urls::url::set_user
Set the user
Synopsis
Declared in <boost/url/url.hpp>
url&
set_user(core::string_view s);
Description
This function sets the user part of the userinfo to the string. Any special or reserved characters in the string are automatically percent-encoded.
assert( url().set_user("john doe").encoded_userinfo() == "john%20doe" );
this->has_authority() == true && this->has_userinfo() == true
See Also
Created with MrDocs