encoded_resource

Return the resource

Synopsis

pct_string_view
encoded_resource() const noexcept;

Declared in file <include/boost/url/url_view_base.hpp> on line 2299

Defined in file <src/url_view_base.cpp> on line 617

Description

This function returns the resource, which is the portion of the url that includes only the path, query, and fragment. The returned string may contain percent escapes.

Example

assert( url_view( "http://www.example.com/index.html?query#frag" ).encoded_resource() == "/index.html?query#frag" );

Complexity

Constant.

Exception Safety

Throws nothing.