url Class Reference

**Deprecated** - Use a third-party URL library. More...

#include <url.hpp>

List of all members.

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 &)
urloperator= (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.

Detailed Description

**Deprecated** - Use a third-party URL library.

A URL parser.

Proton URLs take the form `<scheme>://<username>:<password><host>:<port>/<path>`.


Constructor & Destructor Documentation

url ( const std::string &  url_str  ) 

Parse `url_str` as an AMQP URL.

Note:
Converts automatically from string.
Exceptions:
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.

Note:
Converts automatically from string.
Exceptions:
url_error if URL is invalid.
url ( const url  ) 

Copy a URL.


The documentation for this class was generated from the following file:

Generated on 30 Jul 2020 for Qpid Proton C++ by  doxygen 1.6.1