You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
310 B
C++
17 lines
310 B
C++
![]()
6 years ago
|
#include "webcc/http_client_pool.h"
|
||
|
|
||
|
namespace webcc {
|
||
|
|
||
|
HttpClientPtr HttpClientPool::Get(const Url& url) const {
|
||
|
for (const auto& client : clients_) {
|
||
|
return client;
|
||
|
}
|
||
|
return HttpClientPtr{};
|
||
|
}
|
||
|
|
||
|
void HttpClientPool::Add(HttpClientPtr client) {
|
||
|
clients_.push_back(client);
|
||
|
}
|
||
|
|
||
|
} // namespace webcc
|