mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
adds get_port_str to URI
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user