aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/net/http_client.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-22 12:00:21 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-22 12:00:21 +0100
commit333f70120c8c3b6cccf28737c5e230915f5d8f7c (patch)
tree5e6886f33774fd5b4f0aae433b8fc7dfa51fcaac /contrib/epee/include/net/http_client.h
parentMerge pull request #2303 (diff)
downloadmonero-333f70120c8c3b6cccf28737c5e230915f5d8f7c.tar.xz
http_client: add getters for host and port
Diffstat (limited to 'contrib/epee/include/net/http_client.h')
-rw-r--r--contrib/epee/include/net/http_client.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/epee/include/net/http_client.h b/contrib/epee/include/net/http_client.h
index 67e63f7bf..8e099e2bc 100644
--- a/contrib/epee/include/net/http_client.h
+++ b/contrib/epee/include/net/http_client.h
@@ -293,6 +293,9 @@ using namespace std;
, m_lock()
{}
+ const std::string &get_host() const { return m_host_buff; };
+ const std::string &get_port() const { return m_port; };
+
bool set_server(const std::string& address, boost::optional<login> user)
{
http::url_content parsed{};