MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / setPost

Method setPost

framework/data_source/curl/CURLConnection.cpp:328–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326 }
327}
328void CURLConnection::setPost(bool post, int64_t size, const uint8_t *data)
329{
330 if (post) {
331 curl_easy_setopt(mHttp_handle, CURLOPT_POST, 1);
332 curl_easy_setopt(mHttp_handle, CURLOPT_POSTFIELDSIZE, (long) size);
333 curl_easy_setopt(mHttp_handle, CURLOPT_POSTFIELDS, data);
334
335 } else {
336 curl_easy_setopt(mHttp_handle, CURLOPT_POST, 0);
337 }
338}
339
340int CURLConnection::my_trace(CURL *handle, curl_infotype type,
341 char *data, size_t size,

Callers 4

initConnectionMethod · 0.45
OpenMethod · 0.45
initConnectionMethod · 0.45
OpenMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected