24#ifndef KICAD_CURL_EASY_H_
25#define KICAD_CURL_EASY_H_
85 void SetHeader(
const std::string& aName,
const std::string& aValue );
93 bool SetUserAgent(
const std::string& aAgent );
101 bool SetPostFields(
const std::vector<std::pair<std::string, std::string>>& aFields );
109 bool SetPostFields(
const std::string& aField );
117 bool SetURL(
const std::string& aURL );
126 bool SetFollowRedirects(
bool aFollow );
134 const std::string GetErrorText(
int aCode );
136 int GetTransferTotal( uint64_t& aDownloadedBytes )
const;
144 std::string Escape(
const std::string& aUrl );
146 bool SetTransferCallback(
const TRANSFER_CALLBACK& aCallback,
size_t aInterval );
148 bool SetOutputStream(
const std::ostream* aOutput );
152 int GetResponseStatusCode();
162 template <
typename T>
163 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/.