Boost C++ Libraries Home Libraries People FAQ More

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