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.
WebCC/webcc/http_client_pool.cc

17 lines
310 B
C++

#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