MCPcopy Create free account
hub / github.com/cocos/cocos-engine / perform

Method perform

native/cocos/network/HttpClient.cpp:262–273  ·  view source on GitHub ↗

@param responseCode Null not allowed

Source from the content-addressed store, hash-verified

260
261 /// @param responseCode Null not allowed
262 bool perform(long *responseCode) {
263 if (CURLE_OK != curl_easy_perform(_curl))
264 return false;
265 CURLcode code = curl_easy_getinfo(_curl, CURLINFO_RESPONSE_CODE, responseCode);
266 if (code != CURLE_OK || !(*responseCode >= 200 && *responseCode < 300)) {
267 CC_LOG_ERROR("Curl curl_easy_getinfo failed: %s", curl_easy_strerror(code));
268 return false;
269 }
270 // Get some mor data.
271
272 return true;
273 }
274};
275
276//Process Get Request

Callers 6

processGetTaskFunction · 0.80
processPostTaskFunction · 0.80
processPutTaskFunction · 0.80
processHeadTaskFunction · 0.80
processDeleteTaskFunction · 0.80
processPatchTaskFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected