MCPcopy Create free account
hub / github.com/axmolengine/axmol / enableCookies

Method enableCookies

core/network/HttpClient.cpp:91–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void HttpClient::enableCookies(const char* cookieFile)
92{
93 std::lock_guard<std::recursive_mutex> lock(_cookieFileMutex);
94 if (cookieFile)
95 {
96 _cookieFilename = cookieFile;
97 }
98 else
99 {
100 _cookieFilename = (FileUtils::getInstance()->getNativeWritableAbsolutePath() + "cookieFile.txt");
101 }
102
103 if (!_cookie)
104 _cookie = new HttpCookie();
105 _cookie->setCookieFileName(_cookieFilename);
106 _cookie->readFile();
107}
108
109void HttpClient::setSSLVerification(std::string_view caFile)
110{

Callers 1

HttpClientTestMethod · 0.45

Calls 4

getInstanceFunction · 0.85
setCookieFileNameMethod · 0.80
readFileMethod · 0.80

Tested by 1

HttpClientTestMethod · 0.36