public boolean hasProtocol(SessionProtocol protocol) {
        requireNonNull(protocol, "protocol");

        if (httpValues().contains(protocol)) {
            return hasHttp();
        }

        if (httpsValues().contains(protocol)) {
            return hasHttps();
        }

        return hasExactProtocol(protocol);
    }
Returns whether the specified {@code protocol} is in the list of {@link SessionProtocol}s.
core/src/main/java/com/linecorp/armeria/server/ServerPort.java