Look for a specific client protocol
| 8715 | |
| 8716 | // Look for a specific client protocol |
| 8717 | const char * |
| 8718 | HttpSM::client_protocol_contains(std::string_view tag_prefix) const |
| 8719 | { |
| 8720 | const char *retval = nullptr; |
| 8721 | std::string_view proto = HttpSM::find_proto_string(t_state.hdr_info.client_request.version_get()); |
| 8722 | if (!proto.empty()) { |
| 8723 | std::string_view prefix(tag_prefix); |
| 8724 | if (prefix.size() <= proto.size() && 0 == strncmp(proto.data(), prefix.data(), prefix.size())) { |
| 8725 | retval = proto.data(); |
| 8726 | } else if (_ua.get_txn()) { |
| 8727 | retval = _ua.get_txn()->protocol_contains(prefix); |
| 8728 | } |
| 8729 | } |
| 8730 | return retval; |
| 8731 | } |
| 8732 | |
| 8733 | // Fill in the server protocols used. Return the number of entries populated. |
| 8734 | int |
no test coverage detected