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

Function http_hdr_version_to_string

src/proxy/hdrs/HTTP.cc:391–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389 -------------------------------------------------------------------------*/
390
391static inline char *
392http_hdr_version_to_string(const HTTPVersion &version, char *buf9)
393{
394 ink_assert(version.get_major() < 10);
395 ink_assert(version.get_minor() < 10);
396
397 buf9[0] = 'H';
398 buf9[1] = 'T';
399 buf9[2] = 'T';
400 buf9[3] = 'P';
401 buf9[4] = '/';
402 buf9[5] = '0' + version.get_major();
403 buf9[6] = '.';
404 buf9[7] = '0' + version.get_minor();
405 buf9[8] = '\0';
406
407 return (buf9);
408}
409
410/*-------------------------------------------------------------------------
411 -------------------------------------------------------------------------*/

Callers 2

http_version_printFunction · 0.85
http_hdr_printFunction · 0.85

Calls 2

get_majorMethod · 0.80
get_minorMethod · 0.80

Tested by

no test coverage detected