**Deprecated** - Use a third-party URL library. More...
#include <url.hpp>
Public Member Functions | |
url (const std::string &url_str) | |
Parse `url_str` as an AMQP URL. | |
url (const std::string &url_str, bool defaults) | |
INTERNAL XXX I want to understand why this is important to keep. | |
url (const url &) | |
url & | operator= (const url &) |
Copy a URL. | |
bool | empty () const |
True if the URL is empty. | |
operator std::string () const | |
Returns the URL as a string. | |
URL fields | |
std::string | scheme () const |
`amqp` or `amqps`. | |
std::string | user () const |
The user name for authentication. | |
std::string | password () const |
The password. | |
std::string | host () const |
The host name or IP address. | |
std::string | port () const |
`port` can be a number or a symbolic name such as "amqp". | |
uint16_t | port_int () const |
`port_int` is the numeric value of the port. | |
std::string | host_port () const |
host_port returns just the `host:port` part of the URL | |
std::string | path () const |
`path` is everything after the final "/". | |
Static Public Attributes | |
static const std::string | AMQP |
"amqp" prefix | |
static const std::string | AMQPS |
"amqps" prefix | |
Friends | |
std::string | to_string (const url &) |
Return URL as a string. |
**Deprecated** - Use a third-party URL library.
A URL parser.
Proton URLs take the form `<scheme>://<username>:<password><host>:<port>/<path>`.
url | ( | const std::string & | url_str | ) |
Parse `url_str` as an AMQP URL.
url_error | if URL is invalid. |
url | ( | const std::string & | url_str, | |
bool | defaults | |||
) |
INTERNAL XXX I want to understand why this is important to keep.
Unsettled API** - Parse `url_str` as an AMQP URL. If `defaults` is true, fill in defaults for missing values. Otherwise, return an empty string for missing values.
url_error | if URL is invalid. |