INNER CODE UNIT · C++
full_path
ClickHouse/ai-sdk-cpp · src/http/http_request_handler.cpp:117
std::string full_path = config_.base_path + path;
ai::logger::log_debug("Making {} request to {}:{}{}",
config_.use_ssl ? "HTTPS" : "HTTP", config_.host,
full_path,
" with body size: " + std::to_string(body.size()));
if (config_.use_ssl) {
httplib::SSLClient cli(config_.host);
cli.set_connection_timeout(config_.connection_timeout_sec, 0);
cli.set_read_timeout(config_.read_timeout_sec, 0);
cli.enable_server_certificate_verification(config_.verify_ssl_cert);
auto res = cli.Post(full_path, headers, body, content_type);
return handler(res, "HTTPS");
} else {
httplib::Client cli(config_.host);
cli.set_connection_timeout(config_.connection_timeout_sec, 0);