| 299 | } |
| 300 | |
| 301 | const char * |
| 302 | Http2ServerSession::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 | |
| 314 | ProxySession * |
| 315 | Http2ServerSession::get_proxy_session() |
no test coverage detected