adds the ability to get the absolute authority of a uri

This commit is contained in:
Peter Thorson
2013-05-05 17:28:03 -05:00
parent 03e6f6dd11
commit 3fcc3b6b75

View File

@@ -204,6 +204,12 @@ public:
}
}
std::string get_authority() const {
std::stringstream p;
p << m_host << ":" << m_port;
return p.str();
}
uint16_t get_port() const {
return m_port;
}