MCPcopy Create free account
hub / github.com/chrxh/alien / configureClient

Function configureClient

source/Network/NetworkService.cpp:22–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 auto constexpr MaxChunkSize = 24 * 1024 * 1024;
21
22 void configureClient(httplib::SSLClient& client)
23 {
24 client.set_ca_cert_path("./resources/ca-bundle.crt");
25 client.enable_server_certificate_verification(true);
26 if (auto result = client.get_openssl_verify_result()) {
27 throw std::runtime_error("OpenSSL verify error: " + std::string(X509_verify_cert_error_string(result)));
28 }
29 }
30
31 httplib::Result executeRequest(std::function<httplib::Result()> const& func, bool withRetry = true)
32 {

Callers 15

createUserMethod · 0.85
activateUserMethod · 0.85
loginMethod · 0.85
logoutMethod · 0.85
refreshLoginMethod · 0.85
deleteUserMethod · 0.85
resetPasswordMethod · 0.85
setNewPasswordMethod · 0.85
getNetworkResourcesMethod · 0.85
getUserListMethod · 0.85

Tested by

no test coverage detected