hjr3 / hyper-timeout

A timeout connector for the hyper client
Other
25 stars 10 forks source link

update to hyper 1.0 #25

Closed allan2 closed 9 months ago

allan2 commented 10 months ago

This PR is for #24.

hyper now has its own IO traits.

This PR drops the dependency on tokio-io-timeout. Its types are now implemented here in this crate, using hyper IO traits instead of tokio traits.

This PR is mostly finished, but I think it should be looked over. The tests that use tokio::io::AsyncExt for read are not fixed yet.

allan2 commented 10 months ago

This PR now passes all tests and is ready for review! More notes are in the commit messages.

Feedback is very welcome. Cheers!

hjr3 commented 9 months ago

This looks great! Thank you for all your time and effort.

hjr3 commented 9 months ago

https://crates.io/crates/hyper-timeout/0.5.0 - crates.io has been updated with the latest package