5 #include "../json11/json11.hpp"
6 #include "../http/httpclienttask.h"
11 double start()
override;
15 std::string cacheLabel()
override {
18 std::string getResult() {
21 std::string res = results.front();
28 std::map<std::string, TimePoint> requests;
29 std::string best_host;
30 std::deque<std::string> results;
31 double best_time = 1e6;
HTTP/1.1 client protocol.
Definition: httpclientconnection.h:39
API for HTTP clients.
Definition: httpclienttask.h:11
The host name and port number of a HTTP host.
Definition: httphost.h:17
Definition: pingsweeptask.h:8
double start() override
Definition: pingsweeptask.cpp:9
void newRequest(HttpClientConnection *) override
Initiate next request, or ignore to close connection.
Definition: pingsweeptask.cpp:28
double timerEvent() override
Definition: pingsweeptask.cpp:23
bool requestComplete(HttpClientConnection *conn) override
Called when response has been fully read.
Definition: pingsweeptask.cpp:38