Skip to content
Snippets Groups Projects
Commit eb226962 authored by Seva's avatar Seva Committed by Adrien Béraud
Browse files

http: optimize get_url funcs

parent 70c92d6c
No related branches found
No related tags found
No related merge requests found
......@@ -150,7 +150,9 @@ public:
~Resolver();
Url get_url() const;
inline const Url& get_url() const {
return url_;
};
std::string get_service() const;
void add_callback(ResolverCb cb);
......@@ -209,7 +211,9 @@ public:
unsigned int id() const;
void set_connection(std::shared_ptr<Connection> connection);
std::shared_ptr<Connection> get_connection() const;
Url get_url() const;
inline const Url& get_url() const {
return resolver_->get_url();
};
void set_certificate(std::shared_ptr<dht::crypto::Certificate> certificate);
void set_logger(std::shared_ptr<dht::Logger> logger);
......
......@@ -345,12 +345,6 @@ Resolver::~Resolver()
}
}
Url
Resolver::get_url() const
{
return url_;
}
void
Resolver::add_callback(ResolverCb cb)
{
......@@ -455,12 +449,6 @@ Request::id() const
return id_;
}
Url
Request::get_url() const
{
return resolver_->get_url();
}
void
Request::set_connection(std::shared_ptr<Connection> connection)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment