Aktualizr
C++ SOTA Client
Public Member Functions | Static Public Attributes | List of all members
HttpInterface Class Referenceabstract
Inheritance diagram for HttpInterface:
[legend]

Public Member Functions

virtual HttpResponse get (const std::string &url, int64_t maxsize)=0
 
virtual HttpResponse post (const std::string &url, const std::string &content_type, const std::string &data)=0
 
virtual HttpResponse post (const std::string &url, const Json::Value &data)=0
 
virtual HttpResponse put (const std::string &url, const std::string &content_type, const std::string &data)=0
 
virtual HttpResponse put (const std::string &url, const Json::Value &data)=0
 
virtual HttpResponse download (const std::string &url, curl_write_callback write_cb, curl_xferinfo_callback progress_cb, void *userp, curl_off_t from)=0
 
virtual 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)=0
 
virtual void setCerts (const std::string &ca, CryptoSource ca_source, const std::string &cert, CryptoSource cert_source, const std::string &pkey, CryptoSource pkey_source)=0
 

Static Public Attributes

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 38 of file httpinterface.h.


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