Aktualizr
C++ SOTA Client
Public Member Functions | List of all members
HttpClient Class Reference
Inheritance diagram for HttpClient:
[legend]
Collaboration diagram for HttpClient:
[legend]

Public Member Functions

 HttpClient (const std::vector< std::string > *extra_headers=nullptr)
 
 HttpClient (const HttpClient &)
 
HttpResponse get (const std::string &url, int64_t maxsize) override
 
HttpResponse post (const std::string &url, const std::string &content_type, const std::string &data) override
 
HttpResponse post (const std::string &url, const Json::Value &data) override
 
HttpResponse put (const std::string &url, const std::string &content_type, const std::string &data) override
 
HttpResponse put (const std::string &url, const Json::Value &data) override
 
HttpResponse download (const std::string &url, curl_write_callback write_cb, curl_xferinfo_callback progress_cb, void *userp, curl_off_t from) override
 
std::future< HttpResponsedownloadAsync (const std::string &url, curl_write_callback write_cb, curl_xferinfo_callback progress_cb, void *userp, curl_off_t from, CurlHandler *easyp) override
 
void setCerts (const std::string &ca, CryptoSource ca_source, const std::string &cert, CryptoSource cert_source, const std::string &pkey, CryptoSource pkey_source) override
 
bool updateHeader (const std::string &name, const std::string &value)
 

Additional Inherited Members

- Static Public Attributes inherited from HttpInterface
static constexpr int64_t kNoLimit = 0
 
static constexpr int64_t kPostRespLimit = 64 * 1024
 
static constexpr int64_t kPutRespLimit = 64 * 1024
 

Detailed Description

Definition at line 28 of file httpclient.h.


The documentation for this class was generated from the following files: