Trait SimpleHttp

Source
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§

Source

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,

Implementors§