Reputation: 192
I want to get the initial HTTP2 setting that the server sent for HTTP/2 connection using okhttp 5.0.0-alpha.10 library
SSLSocketFactory factory = okHttpClient.sslSocketFactory();
SSLSocket socket = (SSLSocket)factory.createSocket("app.test.com", 443);
Http2Connection connection = new Http2Connection.Builder(true, TaskRunner.INSTANCE)
.socket(socket)
.build();
connection.start();
getInitialWindowSize ??
getMaxConcurrentStreams() ??
Upvotes: 1
Views: 194
Reputation: 40623
None of the code in the okhttp3.internal package is intended for end-users to use, including the Http2Connection
class.
Upvotes: 1