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 url &) | |
Copy a 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>
.
amqp
or amqps
. Host is a DNS name or IP address (v4 or v6).amqp
.url | ( | const std::string & | url_str | ) |
Parse url_str
as an AMQP URL.
url_error | if URL is invalid. |