Add some bounds for HttpClient trait

This commit is contained in:
Dirkjan Ochtman 2023-06-02 10:23:04 +02:00
parent 7d379b6b74
commit 37d742dce6
1 changed files with 1 additions and 1 deletions

View File

@ -621,7 +621,7 @@ impl Default for DefaultClient {
}
/// A HTTP client based on [`hyper::Client`]
pub trait HttpClient {
pub trait HttpClient: Send + Sync + 'static {
/// Send the given request and return the response
fn request(&self, req: Request<Body>) -> ResponseFuture;
}