Return the url string

Synopsis

Declared in header </boost/url/url_view_base.hpp#L241[boost/url/url_view_base.hpp,window=blank_]>

string_view
buffer() const noexcept;

Description

This function returns the entire url, which may contain percent escapes.

Example

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

Complexity

Constant.

Exception Safety

Throws nothing.

Return Value

  • string_view