- Add the
Mint.TransportErrorandMint.HTTPErrorexceptions. Change all the connection functions so that they return these error structs instead of generic terms. - Remove
Mint.HTTP2.get_setting/2in favour ofMint.HTTP2.get_server_setting/2andMint.HTTP2.get_client_setting/2.
- Add support for HTTP/2 server push with the new
:push_promiseresponse. - Add
Mint.HTTP2.cancel_request/5. - Add
Mint.HTTP2.get_window_size/2. - Add
open_request_count/1function toMint.HTTP, andMint.HTTP1,Mint.HTTP2. - Add
open?/2function toMint.HTTP, andMint.HTTP1,Mint.HTTP2. - Make the
Mint.HTTP2.HPACKmodule private. - Take into account the max header list size advertised by the server in HTTP/2 connections.
- Improve error handling in a bunch of
Mint.HTTP2functions. - Fix flow control on
WINDOW_UPDATEframes at the connection level inMint.HTTP2. - Correctly return timeout errors when connecting.
- Treat HTTP/1 header keys as case-insensitive.
- Prohibit users from streaming on unknown requests in HTTP/2.
- Prohibit the server from violating the client's max concurrent streams setting in HTTP/2.
- Strip whitespace when parsing the
content-lengthheader in HTTP/1. - Fix path validation when building HTTP/1 requests, fixes paths with
%NNescapes.