:relfileprefix: ../../../ [#boost-urls-url_view_base-encoded_origin] == xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/url_view_base.adoc[pass:[url_view_base]]::encoded_origin Return the origin === Synopsis Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- xref:boost/urls/pct_string_view.adoc[pct_string_view] encoded_origin() const noexcept; ---- === Description 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. [,cpp] ---- assert( url_view( "http://www.example.com:8080/index.htm?text=none#h1" ).encoded_origin() == "http://www.example.com:8080" ); ---- === Constant. === Throws nothing. === See Also xref:boost/urls/url_view_base/encoded_resource.adoc[encoded_resource] , xref:boost/urls/url_view_base/encoded_target.adoc[encoded_target] .