Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions core/core/src/raw/http_util/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub static GLOBAL_REQWEST_CLIENT: LazyLock<reqwest::Client> = LazyLock::new(reqw
/// HttpFetcher is a type erased [`HttpFetch`].
pub type HttpFetcher = Arc<dyn HttpFetchDyn>;

/// A HTTP client instance for OpenDAL's services.
/// An HTTP client instance for OpenDAL's services.
///
/// # Notes
///
Expand Down Expand Up @@ -132,9 +132,9 @@ impl HttpClient {
impl reqsign_core::HttpSend for HttpClient {
fn http_send<'life0, 'async_trait>(
&'life0 self,
req: http::Request<Bytes>,
) -> std::pin::Pin<
Box<dyn Future<Output = reqsign_core::Result<http::Response<Bytes>>> + Send + 'async_trait>,
req: Request<Bytes>,
) -> Pin<
Box<dyn Future<Output = reqsign_core::Result<Response<Bytes>>> + Send + 'async_trait>,
>
where
'life0: 'async_trait,
Expand All @@ -150,17 +150,17 @@ impl reqsign_core::HttpSend for HttpClient {
})?;

let (parts, body) = resp.into_parts();
Ok(http::Response::from_parts(parts, body.to_bytes()))
Ok(Response::from_parts(parts, body.to_bytes()))
})
}
}

impl reqsign_core::HttpSend for AccessorInfoHttpSend {
fn http_send<'life0, 'async_trait>(
&'life0 self,
req: http::Request<Bytes>,
) -> std::pin::Pin<
Box<dyn Future<Output = reqsign_core::Result<http::Response<Bytes>>> + Send + 'async_trait>,
req: Request<Bytes>,
) -> Pin<
Box<dyn Future<Output = reqsign_core::Result<Response<Bytes>>> + Send + 'async_trait>,
>
where
'life0: 'async_trait,
Expand Down