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

Function processDeleteTask

native/cocos/network/HttpClient.cpp:305–309  ·  view source on GitHub ↗

Process DELETE Request

Source from the content-addressed store, hash-verified

303
304//Process DELETE Request
305static int processDeleteTask(HttpClient *client, HttpRequest *request, write_callback callback, void *stream, long *responseCode, write_callback headerCallback, void *headerStream, char *errorBuffer) {
306 CURLRaii curl;
307 bool ok = curl.init(client, request, callback, stream, headerCallback, headerStream, errorBuffer) && curl.setOption(CURLOPT_CUSTOMREQUEST, "DELETE") && curl.setOption(CURLOPT_FOLLOWLOCATION, true) && curl.perform(responseCode);
308 return ok ? 0 : 1;
309}
310
311//Process PATCH Request
312static int processPatchTask(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