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

Function json_entry

plugins/traffic_dump/json_utils.cc:142–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140namespace traffic_dump
141{
142std::string
143json_entry(std::string_view name, std::string_view value)
144{
145 return std::string{"\""} + escape_json(name) + "\":\"" + escape_json(value) + "\"";
146}
147
148std::string
149json_entry(std::string_view name, char const *value, int64_t size)

Callers 2

test_json_utils.ccFile · 0.85

Calls 1

escape_jsonFunction · 0.70

Tested by

no test coverage detected