[−][src]Struct oasis_client::gateway::HttpGateway
Holds necessary information to make http requests to the gateway.
Example
use oasis_client::Gateway as _; let url = "https://gateway.devnet.oasiscloud.io"; let api_key = "AAACL7PMQhh3/rxLr9KJpsAJhz5zBlpAB73uwgAt/6BQ4+Bw"; let gateway = oasis_client::HttpGatewayBuilder::new(url) .api_key(api_key) .build(); let address = gateway.deploy(b"service Wasm bytecode").unwrap(); let response = gateway.rpc(address, b"data").unwrap();
Methods
impl HttpGateway
[src]
pub fn new(
url: String,
headers: HeaderMap,
polling_params: PollingParams
) -> Self
[src]
url: String,
headers: HeaderMap,
polling_params: PollingParams
) -> Self
Creates a new HttpGateway
pointed at url
and with default headers
.
Trait Implementations
impl Gateway for HttpGateway
[src]
Auto Trait Implementations
impl !RefUnwindSafe for HttpGateway
impl Send for HttpGateway
impl Sync for HttpGateway
impl Unpin for HttpGateway
impl !UnwindSafe for HttpGateway
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,