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

Function processGetTask

native/cocos/network/HttpClient.cpp:277–281  ·  view source on GitHub ↗

Process Get Request

Source from the content-addressed store, hash-verified

275
276//Process Get Request
277static int processGetTask(HttpClient *client, HttpRequest *request, write_callback callback, void *stream, long *responseCode, write_callback headerCallback, void *headerStream, char *errorBuffer) {
278 CURLRaii curl;
279 bool ok = curl.init(client, request, callback, stream, headerCallback, headerStream, errorBuffer) && curl.setOption(CURLOPT_FOLLOWLOCATION, true) && curl.perform(responseCode);
280 return ok ? 0 : 1;
281}
282
283//Process POST Request
284static int processPostTask(HttpClient *client, HttpRequest *request, write_callback callback, void *stream, long *responseCode, write_callback headerCallback, void *headerStream, char *errorBuffer) {

Callers 1

processResponseMethod · 0.85

Calls 3

setOptionMethod · 0.80
performMethod · 0.80
initMethod · 0.65

Tested by

no test coverage detected