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
Branches
Tags
No related merge requests found
...@@ -150,7 +150,9 @@ public: ...@@ -150,7 +150,9 @@ public:
~Resolver(); ~Resolver();
Url get_url() const; inline const Url& get_url() const {
return url_;
};
std::string get_service() const; std::string get_service() const;
void add_callback(ResolverCb cb); void add_callback(ResolverCb cb);
...@@ -209,7 +211,9 @@ public: ...@@ -209,7 +211,9 @@ public:
unsigned int id() const; unsigned int id() const;
void set_connection(std::shared_ptr<Connection> connection); void set_connection(std::shared_ptr<Connection> connection);
std::shared_ptr<Connection> get_connection() const; 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_certificate(std::shared_ptr<dht::crypto::Certificate> certificate);
void set_logger(std::shared_ptr<dht::Logger> logger); void set_logger(std::shared_ptr<dht::Logger> logger);
......
...@@ -345,12 +345,6 @@ Resolver::~Resolver() ...@@ -345,12 +345,6 @@ Resolver::~Resolver()
} }
} }
Url
Resolver::get_url() const
{
return url_;
}
void void
Resolver::add_callback(ResolverCb cb) Resolver::add_callback(ResolverCb cb)
{ {
...@@ -455,12 +449,6 @@ Request::id() const ...@@ -455,12 +449,6 @@ Request::id() const
return id_; return id_;
} }
Url
Request::get_url() const
{
return resolver_->get_url();
}
void void
Request::set_connection(std::shared_ptr<Connection> connection) 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