Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions lib/mint/http.ex
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,20 @@ defmodule Mint.HTTP do
server. See `Mint.HTTP2.put_settings/2` for more information. This is only used
in HTTP/2 connections.

* `:connection_window_size` - (integer) the initial size of the connection-level
HTTP/2 receive window, in bytes. Sent to the server as a `WINDOW_UPDATE` frame
on stream 0 as part of the connection preface. Defaults to 16 MB. Can be
raised later with `Mint.HTTP2.set_window_size/3`.

* `:receive_window_update_threshold` - (integer) the minimum number of bytes of receive
window that must remain on a connection or stream before a `WINDOW_UPDATE`
frame is sent to refill it. Lower values send more frequent, smaller updates;
higher values batch updates into fewer, larger ones. Defaults to 160_000
(approximately 10× the default max frame size). The same threshold applies
to both the connection and per-stream windows; when a window's peak size is
at or below the threshold, the client refills after every DATA frame on
that window.

There may be further protocol specific options that only take effect when the corresponding
connection is established. Check `Mint.HTTP1.connect/4` and `Mint.HTTP2.connect/4` for
details.
Expand Down
Loading
Loading