Add some bounds for HttpClient trait
This commit is contained in:
parent
7d379b6b74
commit
37d742dce6
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue