KiCad PCB EDA Suite
kicad_curl_easy.h File Reference
#include <functional>
#include <memory>
#include <ostream>
#include <string>

Go to the source code of this file.




typedef void CURL
typedef std::function< int(size_t, size_t, size_t, size_t)> TRANSFER_CALLBACK
 Wrapper interface around the curl_easy API/. More...

Typedef Documentation


typedef void CURL

Definition at line 41 of file kicad_curl_easy.h.


typedef std::function<int( size_t, size_t, size_t, size_t )> TRANSFER_CALLBACK

Wrapper interface around the curl_easy API/.

Handling of using the curl_easy API to make a request and save the response to a memory buffer

Here is a small example usage:

curl.SetURL( "" );
curl.SetUserAgent( <http-client-identifier> );
curl.SetHeader( "Accept", "application/json" );

Definition at line 42 of file kicad_curl_easy.h.