[#3E34D382526526E130287B915C60728BBC16F16F]

Function url_base:: remove_userinfo

Remove the userinfo

Synopsis

            url_base&
remove_userinfo() noexcept;
        

Description

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

Example

assert( url( "http://user@example.com" ).remove_userinfo().has_userinfo() == false );

Postconditions

this->has_userinfo() == false && this->encoded_userinfo().empty == true

Complexity

Linear in `this->size()`.

Exception Safety

Throws nothing.

BNF

userinfo = [ [ user ] [ ':' password ] ] user = *( unreserved / pct-encoded / sub-delims ) password = *( unreserved / pct-encoded / sub-delims / ":" )

Specification

  • 3.2.1. User Information (rfc3986)