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

PrevUpHomeNext
static_url::scheme_id

(Inherited from url_view_base)

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