File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -1291,6 +1291,26 @@ impl Builder {
1291
1291
self
1292
1292
}
1293
1293
1294
+ /// Sets the initial maximum of locally initiated (send) streams.
1295
+ ///
1296
+ /// This value will be overwritten by the value included in the initial
1297
+ /// SETTINGS frame received from the peer as part of a [connection preface].
1298
+ ///
1299
+ /// Passing `None` will do nothing.
1300
+ ///
1301
+ /// If not set, hyper will use a default.
1302
+ ///
1303
+ /// [connection preface]: https://httpwg.org/specs/rfc9113.html#preface
1304
+ #[ cfg( feature = "http2" ) ]
1305
+ #[ cfg_attr( docsrs, doc( cfg( feature = "http2" ) ) ) ]
1306
+ pub fn http2_initial_max_send_streams (
1307
+ & mut self ,
1308
+ initial : impl Into < Option < usize > > ,
1309
+ ) -> & mut Self {
1310
+ self . h2_builder . initial_max_send_streams ( initial) ;
1311
+ self
1312
+ }
1313
+
1294
1314
/// Sets whether to use an adaptive flow control.
1295
1315
///
1296
1316
/// Enabling this will override the limits set in
You can’t perform that action at this time.
0 commit comments