Bredbandskollen CLI  1.2
Asynchronous network task engine
tickettask.h
1 #pragma once
2 
3 #include "singlerequesttask.h"
4 
5 class TicketTask : public SingleRequestTask {
6 public:
7  TicketTask(const HttpHost &server, const std::string &key,
8  const std::string &host);
9 
10  std::string cacheLabel() override {
11  return _ticket;
12  }
13 
14  bool requestComplete(HttpClientConnection *conn) override;
15  const std::string &localIp() const {
16  return _localIp;
17  }
18 private:
19  std::string _ticket, _localIp;
20 };
HTTP/1.1 client protocol.
Definition: httpclientconnection.h:39
The host name and port number of a HTTP host.
Definition: httphost.h:17
Definition: singlerequesttask.h:5
Definition: tickettask.h:5
bool requestComplete(HttpClientConnection *conn) override
Called when response has been fully read.
Definition: tickettask.cpp:10