boost::urls::url_view::url_view
Constructor
Synopsis
Declared in <boost/url/url_view.hpp>
template<class String>
requires std::is_convertible<
String,
core::string_view
>::value &&
!std::is_convertible<
String*,
url_view_base*
>::value
url_view(String const& s);
Description
This function constructs a URL from the string s
, which must contain a valid URI or relative‐ref or else an exception is thrown. Upon successful construction, the view refers to the characters in the buffer pointed to by s
. Ownership is not transferred; The caller is responsible for ensuring that the lifetime of the buffer extends until it is no longer referenced.
BNF
URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
relative-ref = relative-part [ "?" query ] [ "#" fragment ]
See Also
Created with MrDocs