MCPcopy Create free account
hub / github.com/apache/trafficserver / http_version_print

Function http_version_print

src/proxy/hdrs/HTTP.cc:413–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411 -------------------------------------------------------------------------*/
412
413int
414http_version_print(const HTTPVersion &version, char *buf, int bufsize, int *bufindex, int *dumpoffset)
415{
416#define TRY(x) \
417 if (!x) \
418 return 0
419
420 char tmpbuf[16];
421 http_hdr_version_to_string(version, tmpbuf);
422 TRY(mime_mem_print(tmpbuf, 8, buf, bufsize, bufindex, dumpoffset));
423 return 1;
424
425#undef TRY
426}
427
428/*-------------------------------------------------------------------------
429 -------------------------------------------------------------------------*/

Callers 1

http_hdr_printFunction · 0.85

Calls 2

mime_mem_printFunction · 0.85

Tested by

no test coverage detected