Closed JiggyDown closed 3 years ago
@samstokes That makes sense. Renamed the function to build_with_http_client
.
Thanks very much @JiggyDown - I'll go ahead and merge this. Thanks again for the contribution!
I also pushed a couple of minor changes to your branch to fix some new Clippy warnings that showed up.
The
hyper
client builder allows specifying many useful options, notablypool_idle_timeout
andhttp2_keep_alive_interval
, which are super useful to make sure persistent connections stay alive.This PR extends the
rust-eventsource-client
builder with the ability to pass thehyper
client directly, which allows for maximal flexibility.