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

Function dump_header

include/proxy/http/HttpTransact.h:79–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79inline void
80dump_header(DbgCtl const &ctl, HTTPHdr const *hdr, std::int64_t sm_id, std::string_view description)
81{
82 if (ctl.on()) {
83 std::string output;
84 output.append("+++++++++ ");
85 output.append(description);
86 output.append(" +++++++++\n");
87 output.append("-- State Machine Id: ");
88 output.append(std::to_string(sm_id));
89 output.push_back('\n');
90 if (hdr->valid()) {
91 s_dump_header(hdr, output);
92 } else {
93 output.append("Invalid header!\n");
94 }
95 // We make a single call to fprintf so that the output does not get
96 // interleaved with output from other threads performing I/O.
97 fprintf(stderr, "%s", output.c_str());
98 }
99}
100
101using ink_time_t = time_t;
102

Callers 13

redirect_requestMethod · 0.85
StartRemapRequestMethod · 0.85
HandlePushResponseHdrMethod · 0.85
issue_revalidateMethod · 0.85
HandleResponseMethod · 0.85
build_response_copyMethod · 0.85
build_requestMethod · 0.85

Calls 7

s_dump_headerFunction · 0.85
to_stringFunction · 0.50
onMethod · 0.45
appendMethod · 0.45
push_backMethod · 0.45
validMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected