24#include <boost/algorithm/string.hpp> 
   83        aCurl->SetHeader( 
"Accept", 
"application/json" );
 
   84        aCurl->SetHeader( 
"Authorization", 
"Token " + 
m_source.token );
 
   85        aCurl->SetFollowRedirects( 
true );
 
 
  124    std::map<std::string, std::tuple<std::string, std::string>> 
m_cache;
 
 
bool checkServerResponse(std::unique_ptr< KICAD_CURL_EASY > &aCurl)
 
std::map< std::string, std::string > m_parts
 
static const long DEFAULT_TIMEOUT
 
bool validateHttpLibraryEndpoints()
 
std::vector< HTTP_LIB_CATEGORY > getCategories() const
 
std::map< std::string, HTTP_LIB_PART > m_cachedParts
 
std::unique_ptr< KICAD_CURL_EASY > createCurlEasyObject()
 
std::map< std::string, std::string > m_categoryDescriptions
 
bool SelectAll(const HTTP_LIB_CATEGORY &aCategory, std::vector< HTTP_LIB_PART > &aParts)
Retrieve all parts from a specific category from the HTTP library.
 
HTTP_LIB_CONNECTION(const HTTP_LIB_SOURCE &aSource, bool aTestConnectionNow)
 
std::map< std::string, std::tuple< std::string, std::string > > m_cache
 
std::vector< HTTP_LIB_CATEGORY > m_categories
 
bool IsValidEndpoint() const
 
virtual ~HTTP_LIB_CONNECTION()=default
 
bool SelectOne(const std::string &aPartID, HTTP_LIB_PART &aFetchedPart)
Retrieve a single part with full details from the HTTP library.
 
wxString httpErrorCodeDescription(uint16_t aHttpCode)
HTTP response status codes indicate whether a specific HTTP request has been successfully completed.
 
std::string GetLastError() const
 
std::string getCategoryDescription(const std::string &aCategoryName) const
 
const char *const traceHTTPLib