boost::urls::url_base::remove_scheme

Remove the scheme

Synopsis

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

url_base&
remove_scheme();

Description

This function removes the scheme if it is present.

assert( url("http://www.example.com/index.htm" ).remove_scheme().buffer() == "//www.example.com/index.htm" ); this->has_scheme() == false && this->scheme_id() == scheme::none

Linear in `this->size()`.

Throws nothing.

URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
  • 3.1. Scheme (rfc3986)
  • See Also

    set_scheme .

    Created with MrDocs