MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setOption

Method setOption

Engine/source/app/net/httpObject.cpp:400–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398//--------------------------------------
399
400void HTTPObject::setOption(const std::string &option, const std::string &value)
401{
402 if (option == "verbose") { /* opt = new curlpp::options::Verbose(StringMath::scan<bool>(value)); */ }
403 else if (option == "user-agent") { curl_easy_setopt(mCurl, CURLOPT_USERAGENT, value.c_str()); }
404 else if (option == "cookie") { curl_easy_setopt(mCurl, CURLOPT_COOKIE, value.c_str()); }
405 else if (option == "verify-peer") { curl_easy_setopt(mCurl, CURLOPT_SSL_VERIFYPEER, value == "true"); }
406 else {
407 Con::errorf("HTTPObject::setOption unknown option %s", option.c_str());
408 }
409}
410
411void HTTPObject::setDownloadPath(const std::string &path)
412{

Callers 1

DefineEngineMethodFunction · 0.45

Calls 3

curl_easy_setoptFunction · 0.85
errorfFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected