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

Method debugHeader

framework/data_source/curl/CURLConnection2.cpp:206–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206void Cicada::CURLConnection2::debugHeader(bool in, char *data, size_t size)
207{
208 string *header = &outHeader;
209
210 if (in) {
211 header = &inHeader;
212 }
213
214 *header += string(data, size);
215
216 if (header->length() < 4) {
217 return;
218 }
219
220 if (header->compare(header->length() - 4, 4, "\r\n\r\n") == 0) {
221 CURL_LOGD("<= %s header \n%s", in ? "Recv" : "Send", header->c_str());
222 *header = "";
223 }
224}
225
226size_t Cicada::CURLConnection2::write_response(void *ptr, size_t size, size_t nmemb, void *data)
227{

Callers 1

my_traceMethod · 0.45

Calls 3

stringClass · 0.85
lengthMethod · 0.80
compareMethod · 0.45

Tested by

no test coverage detected