I'm using OkHttpClient 3.14.9. I need to establish connection using TLSv1.3 and http2 protocols. The problem is that server does not support ALPN (OkHttpClient uses this extention to establish with server which version of http protocol to use).
On server side http1.1 is disabled, only http2 enabled. Client does not succeed to establish connection. When server enables http1.1, my client connects to server via http1.1.
As I understand, it means that there is no negotiation between client and server about http version: client is trying to negotiate via ALPN -> server does not "understand" client -> client think that server does not support http2 and try to connect with http1.1
So, if not ALPN, is there any other way for OkHttpClient to establish TLS connection via http2? (important that connection is TLS, because without TLS Protocol.H2_PRIOR_KNOWLEDGE
works good)