feat(http2): Add window size config options for Client and Server

Add `fn http2_initial_stream_window_size` and `fn
http2_initial_connection_window_size` for client and server.

Closes #1771
This commit is contained in:
Kevin Leimkuhler
2019-03-01 14:44:38 -08:00
committed by Sean McArthur
parent 2114950cda
commit 7dcd4618c0
5 changed files with 93 additions and 6 deletions

View File

@@ -37,11 +37,8 @@ where
T: AsyncRead + AsyncWrite + Send + 'static,
B: Payload,
{
pub(crate) fn new(io: T, rx: ClientRx<B>, exec: Exec) -> Client<T, B> {
let handshake = Builder::new()
// we don't expose PUSH promises yet
.enable_push(false)
.handshake(io);
pub(crate) fn new(io: T, rx: ClientRx<B>, builder: &Builder, exec: Exec) -> Client<T, B> {
let handshake = builder.handshake(io);
Client {
executor: exec,