boost::urls::url_base::remove_userinfo

Remove the userinfo

Synopsis

Declared in <include/boost/url/url_base.hpp>

url_base&
remove_userinfo() noexcept;

Description

This function removes the userinfo if present, without removing any authority.

assert( url( "http://user@example.com" ).remove_userinfo().has_userinfo() == false ); this->has_userinfo() == false && this->encoded_userinfo().empty == true

Linear in `this->size()`.

Throws nothing.

userinfo = [ [ user ] [ ':' password ] ] user = *( unreserved / pct-encoded / sub-delims ) password = *( unreserved / pct-encoded / sub-delims / ":" )
  • 3.2.1. User Information (rfc3986)
  • See Also

    set_encoded_userinfo , set_userinfo .

    Created with MrDocs