Look for a specific server protocol
| 8752 | |
| 8753 | // Look for a specific server protocol |
| 8754 | const char * |
| 8755 | HttpSM::server_protocol_contains(std::string_view tag_prefix) const |
| 8756 | { |
| 8757 | const char *retval = nullptr; |
| 8758 | std::string_view proto = HttpSM::find_proto_string(t_state.hdr_info.server_request.version_get()); |
| 8759 | if (!proto.empty()) { |
| 8760 | std::string_view prefix(tag_prefix); |
| 8761 | if (prefix.size() <= proto.size() && 0 == strncmp(proto.data(), prefix.data(), prefix.size())) { |
| 8762 | retval = proto.data(); |
| 8763 | } else { |
| 8764 | if (server_txn) { |
| 8765 | retval = server_txn->protocol_contains(prefix); |
| 8766 | } |
| 8767 | } |
| 8768 | } |
| 8769 | return retval; |
| 8770 | } |
| 8771 | |
| 8772 | std::string_view |
| 8773 | HttpSM::find_proto_string(HTTPVersion version) const |
no test coverage detected