24#ifndef KICAD_CURL_EASY_H_
25#define KICAD_CURL_EASY_H_
84 void SetHeader(
const std::string& aName,
const std::string& aValue );
92 bool SetUserAgent(
const std::string& aAgent );
100 bool SetPostFields(
const std::vector<std::pair<std::string, std::string>>& aFields );
108 bool SetPostFields(
const std::string& aField );
116 bool SetURL(
const std::string& aURL );
125 bool SetFollowRedirects(
bool aFollow );
133 const std::string GetErrorText(
int aCode );
135 int GetTransferTotal( uint64_t& aDownloadedBytes )
const;
143 std::string Escape(
const std::string& aUrl );
145 bool SetTransferCallback(
const TRANSFER_CALLBACK& aCallback,
size_t aInterval );
147 bool SetOutputStream(
const std::ostream* aOutput );
151 int GetResponseStatusCode();
161 template <
typename T>
162 int setOption(
int aOption, T aArg );
std::unique_ptr< CURL_PROGRESS > progress
const std::string & GetBuffer()
Return a reference to the received data buffer.
std::function< int(size_t, size_t, size_t, size_t)> TRANSFER_CALLBACK
Wrapper interface around the curl_easy API/.