![]() |
Home | Libraries | People | FAQ | More |
Return the origin.
pct_string_view encoded_origin() const;
If an authority is present, this function returns the scheme and authority portion of the url. Otherwise, an empty string is returned. The returned string may contain percent escapes.
assert( [link url.ref.boost__urls__url_view_base.url_view `url_view`]( "http://www.example.com:8080/index.htm?text=none#h1" ).[link url.ref.boost__urls__url_view.encoded_origin `encoded_origin`]() == "http://www.example.com:8080" );
Constant.
Throws nothing.