|
| Url () |
| Constructs a new, empty URL object.
|
|
| Url (const std::string &encodedUrl) |
| Constructs a URL from a URL-encoded string. More...
|
|
void | SetScheme (const std::string &scheme) |
| Sets URL scheme. More...
|
|
void | SetHost (const std::string &encodedHost) |
| Sets URL host. More...
|
|
void | SetPort (uint16_t port) |
| Sets URL port. More...
|
|
void | SetPath (const std::string &encodedPath) |
| Sets URL path. More...
|
|
void | SetQueryParameters (std::map< std::string, std::string > queryParameters) |
| Sets the query parameters from an existing query parameter map. More...
|
|
void | AppendPath (const std::string &encodedPath) |
| Appends an element of URL path. More...
|
|
void | AppendQueryParameter (const std::string &encodedKey, const std::string &encodedValue) |
| The value of a query parameter is expected to be non-URL-encoded and, by default, it will be encoded before adding to the URL. Use isValueEncoded = true when the value is already encoded. More...
|
|
void | RemoveQueryParameter (const std::string &encodedKey) |
| Removes an existing query parameter. More...
|
|
const std::string & | GetHost () const |
| Gets URL host.
|
|
const std::string & | GetPath () const |
| Gets the URL path. More...
|
|
uint16_t | GetPort () const |
| Gets the port number set for the URL. More...
|
|
std::map< std::string, std::string > | GetQueryParameters () const |
| Gets a copy of the list of query parameters from the URL. More...
|
|
const std::string & | GetScheme () const |
| Gets the URL scheme.
|
|
std::string | GetRelativeUrl () const |
| Gets the path and query parameters. More...
|
|
std::string | GetAbsoluteUrl () const |
| Gets Scheme, host, path and query parameters. More...
|
|
It can be parsed and initialized from a string that contains all URL components (scheme, host, path, etc.). Authority is not currently supported.