Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the master branch, built from commit 9fc5439165.
PrevUpHomeNext
url_view_base::scheme_id

Return the scheme.

Synopsis
urls::scheme
scheme_id() const;
Description

This function returns a value which depends on the scheme in the URL:

Example
assert( url_view( "wss://www.example.com/crypto.cgi" ).scheme_id() == scheme::wss );
Complexity

Constant.

Exception Safety

Throws nothing.

BNF
URI             = scheme ":" hier-part [ "?" query ] [ "#" fragment ]

absolute-URI    = scheme ":" hier-part [ "?" query ]

scheme          = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
Specification
See Also

has_scheme, scheme.


PrevUpHomeNext