set_scheme
Set the scheme
Synopsis
url_base&
set_scheme(string_view s);
Declared in file <include/boost/url/url_base.hpp> on line 242
Defined in file <src/url_base.cpp> on line 148
Description
The scheme is set to the specified string, which must contain a valid scheme without any trailing colon (':'). Note that schemes are case-insensitive, and the canonical form is lowercased.
Example
assert( url( "http://www.example.com" ).set_scheme( "https" ).scheme_id() == scheme::https );