Update http deps

This commit is contained in:
Dominik Werder
2023-12-06 17:03:56 +01:00
parent 1b3e9ebd2a
commit c887db1b3d
28 changed files with 1251 additions and 926 deletions

View File

@@ -18,9 +18,8 @@ async_channel_2 = { package = "async-channel", version = "2.0.0" }
chrono = { version = "0.4.26", features = ["serde"] }
url = "2.4.0"
regex = "1.9.1"
http = "0.2.9"
http_1 = { package = "http", version = "1.0.0" }
hyper_1 = { package = "hyper", version = "1.0.1" }
http = "1.0.0"
hyper = "1.0.1"
thiserror = "=0.0.1"
anyhow = "1.0"
tokio = "1"

View File

@@ -429,12 +429,6 @@ impl From<rmp_serde::decode::Error> for Error {
}
}
impl From<http::header::ToStrError> for Error {
fn from(k: http::header::ToStrError) -> Self {
Self::from_string(format!("{:?}", k))
}
}
impl From<anyhow::Error> for Error {
fn from(k: anyhow::Error) -> Self {
Self::from_string(format!("{k}"))
@@ -447,14 +441,20 @@ impl From<tokio::task::JoinError> for Error {
}
}
impl From<http_1::Error> for Error {
fn from(k: http_1::Error) -> Self {
impl From<http::Error> for Error {
fn from(k: http::Error) -> Self {
Self::from_string(k)
}
}
impl From<hyper_1::Error> for Error {
fn from(k: hyper_1::Error) -> Self {
impl From<http::uri::InvalidUri> for Error {
fn from(k: http::uri::InvalidUri) -> Self {
Self::from_string(k)
}
}
impl From<hyper::Error> for Error {
fn from(k: hyper::Error) -> Self {
Self::from_string(k)
}
}