boost::urls::url_view_base::has_scheme

Return true a scheme is present

Synopsis

Declared in <include/boost/url/url_view_base.hpp>

bool
has_scheme() const noexcept;

Description

This function returns true if this contains a scheme.

assert( url_view( "http://www.example.com" ).has_scheme() );

Constant.

Throws nothing.

URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] absolute-URI = scheme ":" hier-part [ "?" query ] scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
  • 3.1. Scheme (rfc3986)
  • See Also

    scheme , scheme_id .

    Created with MrDocs