File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -1291,6 +1291,26 @@ impl Builder {
12911291 self
12921292 }
12931293
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+
12941314 /// Sets whether to use an adaptive flow control.
12951315 ///
12961316 /// Enabling this will override the limits set in
You can’t perform that action at this time.
0 commit comments