You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -731,6 +739,28 @@ public HttpClientOptions setHttp2KeepAliveTimeout(int keepAliveTimeout) {
731
739
returnthis;
732
740
}
733
741
742
+
743
+
/**
744
+
* @return the HTTP/2 upgrade maximum length of the aggregated content in bytes
745
+
*/
746
+
publicintgetHttp2UpgradeMaxContentLength() {
747
+
returnhttp2UpgradeMaxContentLength;
748
+
}
749
+
750
+
/**
751
+
* Set the HTTP/2 upgrade maximum length of the aggregated content in bytes.
752
+
* This is only taken into account when {@link HttpClientOptions#http2ClearTextUpgradeWithPreflightRequest} is set to {@code false} (which is the default).
753
+
* When {@link HttpClientOptions#http2ClearTextUpgradeWithPreflightRequest} is {@code true}, then the client makes a preflight OPTIONS request
754
+
* and the upgrade will not send a body, voiding the requirements.
755
+
*
756
+
* @param http2UpgradeMaxContentLength the length, in bytes
757
+
* @return a reference to this, so the API can be used fluently
0 commit comments