Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::HTTPParams Struct Reference
Collaboration diagram for duckdb::HTTPParams:

Public Member Functions

 HTTPParams (HTTPUtil &http_util)
void Initialize (optional_ptr< FileOpener > opener)
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Public Attributes

uint64_t timeout = DEFAULT_TIMEOUT_SECONDS
uint64_t timeout_usec = 0
uint64_t retries = DEFAULT_RETRIES
uint64_t retry_wait_ms = DEFAULT_RETRY_WAIT_MS
float retry_backoff = DEFAULT_RETRY_BACKOFF
bool keep_alive = DEFAULT_KEEP_ALIVE
bool follow_location = true
bool override_verify_ssl = false
bool verify_ssl = true
string http_proxy
idx_t http_proxy_port
string http_proxy_username
string http_proxy_password
unordered_map< string, string > extra_headers
HTTPUtil & http_util
shared_ptr< Logger > logger

Static Public Attributes

static constexpr uint64_t DEFAULT_TIMEOUT_SECONDS = 30
static constexpr uint64_t DEFAULT_RETRIES = 3
static constexpr uint64_t DEFAULT_RETRY_WAIT_MS = 100
static constexpr float DEFAULT_RETRY_BACKOFF = 4
static constexpr bool DEFAULT_KEEP_ALIVE = true

Constructor & Destructor Documentation

◆ HTTPParams()

duckdb::HTTPParams::HTTPParams ( HTTPUtil & http_util)
inlineexplicit
53063 : http_util(http_util) {
53064 }

◆ ~HTTPParams()

duckdb::HTTPParams::~HTTPParams ( )
virtual
293627 {
293628}

Member Function Documentation

◆ Initialize()

void duckdb::HTTPParams::Initialize ( optional_ptr< FileOpener > opener)
294066 {
294067 auto db = FileOpener::TryGetDatabase(opener);
294068 if (db) {
294069 auto http_proxy_setting = Settings::Get<HTTPProxySetting>(*db);
294070 if (!http_proxy_setting.empty()) {
294071 idx_t port;
294072 string host;
294073 HTTPUtil::ParseHTTPProxyHost(http_proxy_setting, host, port);
294074 http_proxy = host;
294075 http_proxy_port = port;
294076 }
294077 http_proxy_username = Settings::Get<HTTPProxyUsernameSetting>(*db);
294078 http_proxy_password = Settings::Get<HTTPProxyPasswordSetting>(*db);
294079 }
294080
294081 auto client_context = FileOpener::TryGetClientContext(opener);
294082 if (client_context) {
294083 auto &client_config = ClientConfig::GetConfig(*client_context);
294084 if (client_config.enable_http_logging) {
294085 logger = client_context->logger;
294086 }
294087 }
294088}
db
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237

◆ Cast() [1/2]

template<class TARGET>
TARGET & duckdb::HTTPParams::Cast ( )
inline
53095 {
53096 DynamicCastCheck<TARGET>(this);
53097 return reinterpret_cast<TARGET &>(*this);
53098 }

◆ Cast() [2/2]

template<class TARGET>
const TARGET & duckdb::HTTPParams::Cast ( ) const
inline
53100 {
53101 DynamicCastCheck<TARGET>(this);
53102 return reinterpret_cast<const TARGET &>(*this);
53103 }

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