Skip to content

Commit 40da374

Browse files
committed
add notes about HTTP/2 support in :mint dependency in readme
1 parent bfc27be commit 40da374

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,23 @@ If `Mint.WebSocket.upgrade/4` returns
5252
Then the server does not support HTTP/2 WebSockets or does not have them
5353
enabled.
5454

55+
HTTP/2 support for extended CONNECT has been merged into Mint's main branch
56+
but is not yet published. If you need HTTP/2 support, use an override:
57+
58+
```elixir
59+
# mix.exs
60+
def deps do
61+
[
62+
{:mint_web_socket, "~> 0.1"},
63+
{:mint,
64+
git: "https://github.com/elixir-mint/mint.git",
65+
ref: "488a6ba5fd418a52f697a8d5f377c629ea96af92",
66+
override: true},
67+
# ..
68+
]
69+
end
70+
```
71+
5572
## Usage
5673

5774
`Mint.WebSocket` piggybacks much of the existing `Mint.HTTP` API. For example,

0 commit comments

Comments
 (0)