scheme
Return the scheme
Synopsis
string_view
scheme() const noexcept;
Declared in file <include/boost/url/url_view_base.hpp> on line 375
Defined in file <src/url_view_base.cpp> on line 120
Description
This function returns the scheme if it exists, without a trailing colon (':'). Otherwise it returns an empty string. Note that schemes are case-insensitive, and the canonical form is lowercased.
BNF
scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
absolute-URI = scheme ":" hier-part [ "?" query ]