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

Method debugHeader

framework/data_source/curl/CURLConnection.cpp:262–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262void Cicada::CURLConnection::debugHeader(bool in, char *data, size_t size)
263{
264 string *header = &outHeader;
265
266 if (in) {
267 header = &inHeader;
268 }
269
270 *header += string(data, size);
271
272 if (header->length() < 4) {
273 return;
274 }
275
276 if (header->compare(header->length() - 4, 4, "\r\n\r\n") == 0) {
277 CURL_LOGD("<= %s header \n%s", in ? "Recv" : "Send", header->c_str());
278 *header = "";
279 }
280}
281
282size_t Cicada::CURLConnection::write_response(void *ptr, size_t size, size_t nmemb, void *data)
283{

Callers 1

my_traceMethod · 0.45

Calls 3

stringClass · 0.85
lengthMethod · 0.80
compareMethod · 0.45

Tested by

no test coverage detected