Update to http 0.2 (#432)

This commit is contained in:
Sean McArthur
2019-12-02 16:22:26 -08:00
committed by GitHub
parent e7e75bf117
commit eab9c0b410
6 changed files with 17 additions and 10 deletions

View File

@@ -11,5 +11,5 @@ h2 = { path = "../.." }
env_logger = { version = "0.5.3", default-features = false }
futures = { version = "0.3", default-features = false }
honggfuzz = "0.5"
http = { git = "https://github.com/hyperium/http" } #"0.1.3"
http = "0.2"
tokio = { version = "0.2", features = [] }

View File

@@ -10,6 +10,6 @@ h2 = { path = "../..", features = ["unstable-stream", "unstable"] }
bytes = "0.5"
env_logger = "0.5.9"
futures = { version = "0.3", default-features = false }
http = { git = "https://github.com/hyperium/http" } #"0.1.3"
http = "0.2"
tokio = { version = "0.2", features = ["time"] }
tokio-test = "0.2"

View File

@@ -861,7 +861,7 @@ async fn request_options_with_star() {
let uri = uri::Uri::from_parts({
let mut parts = uri::Parts::default();
parts.scheme = Some(uri::Scheme::HTTP);
parts.authority = Some(uri::Authority::from_shared("example.com".into()).unwrap());
parts.authority = Some(uri::Authority::from_static("example.com"));
parts.path_and_query = Some(uri::PathAndQuery::from_static("*"));
parts
})