KiCad PCB EDA Suite
Loading...
Searching...
No Matches
HTTP_LIB_SOURCE Struct Reference

Connection parameters for one HTTP library. More...

#include <http_lib_settings.h>

Public Attributes

HTTP_LIB_SOURCE_TYPE type = HTTP_LIB_SOURCE_TYPE::INVALID
 
std::string root_url
 
std::string api_version
 
std::string token
 
int timeout_parts = 30
 
int timeout_categories = 600
 

Detailed Description

Connection parameters for one HTTP library.

HTTP_LIB_CONNECTION copies the whole struct, so every field has to be meaningful even on a source assembled in code rather than loaded from a .kicad_httplib. type stays INVALID until SCH_IO_HTTP_LIB resolves it, and the timeouts mirror the PARAM defaults in HTTP_LIB_SETTINGS so an unloaded source does not cache with a zero interval.

Definition at line 46 of file http_lib_settings.h.

Member Data Documentation

◆ api_version

std::string HTTP_LIB_SOURCE::api_version

Definition at line 50 of file http_lib_settings.h.

Referenced by BOOST_AUTO_TEST_CASE().

◆ root_url

std::string HTTP_LIB_SOURCE::root_url

◆ timeout_categories

int HTTP_LIB_SOURCE::timeout_categories = 600

Definition at line 53 of file http_lib_settings.h.

Referenced by useFastCacheLifetimes().

◆ timeout_parts

int HTTP_LIB_SOURCE::timeout_parts = 30

◆ token

std::string HTTP_LIB_SOURCE::token

Definition at line 51 of file http_lib_settings.h.

Referenced by BOOST_AUTO_TEST_CASE(), and makeDefaultRetriever().

◆ type

Definition at line 48 of file http_lib_settings.h.

Referenced by makeTestSource().


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