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

Method write_content_node

plugins/traffic_dump/transaction_data.cc:174–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174std::string
175TransactionData::write_content_node(int64_t num_body_bytes)
176{
177 return std::string(R"(,"content":{"encoding":"plain","size":)" + std::to_string(num_body_bytes) + '}');
178}
179
180std::string
181TransactionData::write_content_node(std::string_view body)

Callers 1

Calls 6

stringClass · 0.85
escape_jsonFunction · 0.70
to_stringClass · 0.50
lengthMethod · 0.45
emptyMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected