Converts an object of class url
to a string representation.
std::string to_string( int components = all_components) const;
Parameters
A bitmask specifying which components of the URL should be included
in the string. See the url::components_type
enumeration for possible values.
Return Value
A string representation of the URL.
Examples
To convert the entire URL to a string:
std::string s = url.to_string();
To convert only the host and port number into a string:
std::string s = url.to_string( urdl::url::host_component | urdl::url::port_component);