boost::urls::url::normalize_scheme

Normalize the URL scheme

Synopsis

Declared in <boost/url/url.hpp>
url&
normalize_scheme();

Description

Applies Syntax-based normalization to the URL scheme.

The scheme is normalized to lowercase.

assert( url( "HTTP://www.example.com" ).normalize_scheme().buffer() == "http://www.example.com" );

Exception Safety

Strong guarantee. Calls to allocate may throw.

Specification

Return Value

*this