pub trait SimpleHttp {
// Required method
fn make_request<'life0, 'async_trait>(
&'life0 self,
method: &'static str,
url: String,
) -> Pin<Box<dyn Future<Output = Result<SimpleResponse, AnyError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Very simple HTTP implementation. In most cases, this will just delegate to
the request library on the server (i.e. reqwest) but it can also be used
to make update/download requests on the client rather than the server,
similar to SSH’s remote.SSH.localServerDownload setting.
Required Methods§
fn make_request<'life0, 'async_trait>(
&'life0 self,
method: &'static str,
url: String,
) -> Pin<Box<dyn Future<Output = Result<SimpleResponse, AnyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".