Trait CanisterHttpQuery

Source
pub trait CanisterHttpQuery<E: Debug> {
    // Required method
    fn http_query(&self, request: Vec<u8>) -> Result<Vec<u8>, E>;
}
Expand description

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

Required Methods§

Source

fn http_query(&self, request: Vec<u8>) -> Result<Vec<u8>, E>

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

Implementors§