AsyncCanisterHttpQuery

Trait AsyncCanisterHttpQuery 

Source
pub trait AsyncCanisterHttpQuery<E: Debug> {
    // Required method
    fn http_query<'life0, 'async_trait>(
        &'life0 self,
        request: Vec<u8>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, E>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait providing the ability to perform an async HTTP request to a canister.

Required Methods§

Source

fn http_query<'life0, 'async_trait>( &'life0 self, request: Vec<u8>, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, E>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sends a serialized HTTP request to a canister and returns the serialized HTTP response.

Implementors§