Skip to content

Commit d127c31

Browse files
authored
Merge pull request #44 from yoshuawuyts/fix/content-length
various fixes needed to integrate into surf + tide
2 parents 1cac5e6 + 09f9836 commit d127c31

15 files changed

+809
-95
lines changed

Cargo.toml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,15 @@ edition = "2018"
1414
[dependencies]
1515
url = "2.1.0"
1616
httparse = "1.3.3"
17-
futures-io = "0.3.0"
18-
async-std = { version = "1", features = ["unstable"] }
19-
futures-core-preview = "0.3.0-alpha.18"
17+
async-std = { version = "1.4.0", features = ["unstable"] }
2018
http-types = { path = '../http-types' }
19+
pin-project-lite = "0.1.1"
20+
byte-pool = "0.2.1"
21+
lazy_static = "1.4.0"
22+
futures-core = "0.3.1"
23+
log = "0.4"
2124

2225
[dev-dependencies]
23-
futures-util = "0.3.0"
2426
pretty_assertions = "0.6.1"
27+
async-std = { version = "1.4.0", features = ["unstable", "attributes"] }
28+
tempfile = "3.1.0"

src/check.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
use futures_io::AsyncRead;
1+
use async_std::io::Read;
22

33
/// Check if the protocol for a stream is HTTP/1.1
4-
pub async fn check(_reader: &mut impl AsyncRead) -> bool {
4+
pub async fn check(_reader: &mut impl Read) -> bool {
55
unimplemented!();
66
}

0 commit comments

Comments
 (0)