-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #24. hyper has its own IO traits. The dependency on tokio-io-timeout is dropped. Its types are implemented here, implementing hyper IO traits instead of tokio. - `tokio::io::AsyncRead` is switched to `hyper::rt::Read`, and AsyncWrite to `hyper::rt::Write`. - `tokio::io::AsyncSeek` is no longer needed. The wrapper type `TimeoutConnectorStream` that formerly wrapped tokio_io_timeout::TimeoutStream` is no longer needed. `tokio::io` has the handy AsyncReadExt and AsyncWriteExt traits, which were preivously used in tests. Now that we rely on Hyper IO, those had to be ported over: - AsyncReadExt -> ReadExt - AsyncWriteExt -> WriteExt - tokio internal Read -> ReadFut - tokio internal Write -> WriteFut
- Loading branch information
Showing
5 changed files
with
688 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "hyper-timeout" | ||
version = "0.4.1" | ||
version = "0.5.0" | ||
authors = ["Herman J. Radtke III <[email protected]>"] | ||
edition = "2018" | ||
description = "A connect, read and write timeout aware connector to be used with hyper Client." | ||
|
@@ -11,12 +11,14 @@ repository = "https://github.com/hjr3/hyper-timeout" | |
readme = "README.md" | ||
|
||
[dependencies] | ||
hyper = { version = "0.14.2", features = ["client"] } | ||
hyper = "1.0" | ||
hyper-util = { version = "0.1", features = ["client-legacy", "http1"] } | ||
pin-project-lite = "0.2" | ||
tokio = "1.0.0" | ||
tokio-io-timeout = "1.1.0" | ||
tokio = { version = "1.34.0" } | ||
tower-service = "0.3" | ||
|
||
[dev-dependencies] | ||
hyper = { version = "0.14", features = ["client", "http1", "tcp"] } | ||
hyper-tls = "0.5" | ||
tokio = { version = "1.0.0", features = ["io-std", "io-util", "macros"] } | ||
hyper = { version = "1.0", features = ["http1"] } | ||
hyper-tls = "0.6" | ||
http-body-util = "0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.