Trait HttpRequest
Source pub trait HttpRequest {
// Required methods
fn get_api<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request_url: &'life1 str,
params: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn post_api<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request_url: &'life1 str,
params: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn delete_api<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request_url: &'life1 str,
params: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}