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

Method protocol_contains

src/proxy/http2/Http2ServerSession.cc:301–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301const char *
302Http2ServerSession::protocol_contains(std::string_view prefix) const
303{
304 const char *retval = nullptr;
305
306 if (prefix.size() <= IP_PROTO_TAG_HTTP_2_0.size() && strncmp(IP_PROTO_TAG_HTTP_2_0.data(), prefix.data(), prefix.size()) == 0) {
307 retval = IP_PROTO_TAG_HTTP_2_0.data();
308 } else {
309 retval = super::protocol_contains(prefix);
310 }
311 return retval;
312}
313
314ProxySession *
315Http2ServerSession::get_proxy_session()

Callers 2

Calls 2

sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected