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

Method remove_scheme_prefix

plugins/traffic_dump/transaction_data.cc:293–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293std::string_view
294TransactionData::remove_scheme_prefix(std::string_view url)
295{
296 const auto scheme_separator = url.find("://");
297 if (scheme_separator == std::string::npos) {
298 return url;
299 }
300 url.remove_prefix(scheme_separator + 3);
301 return url;
302}
303
304bool
305TransactionData::init_helper(bool dump_body)

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
remove_prefixMethod · 0.45

Tested by

no test coverage detected