adds get_port_str to URI

This commit is contained in:
Peter Thorson
2011-12-06 08:44:34 -06:00
parent efd5b8d8b1
commit 695b8a4d30
2 changed files with 7 additions and 0 deletions

View File

@@ -122,6 +122,12 @@ uint16_t uri::get_port() const {
return m_port;
}
std::string uri::get_port_str() const {
std::stringstream p;
p << m_port;
return p.str();
}
std::string uri::get_resource() const {
return m_resource;
}

View File

@@ -65,6 +65,7 @@ public:
bool get_secure() const;
std::string get_host() const;
uint16_t get_port() const;
std::string get_port_str() const;
std::string get_resource() const;
std::string str() const;