[−][src]Struct oasis_client::gateway::HttpGatewayBuilder
Methods
impl HttpGatewayBuilder
[src]
pub fn new(url: impl AsRef<str>) -> Self
[src]
pub fn api_key(self, api_key: impl AsRef<str>) -> Self
[src]
Set the api key expected by the Oasis Developer gateway.
pub fn header(
self,
name: impl AsRef<[u8]>,
value: impl AsRef<[u8]>
) -> Result<Self>
[src]
self,
name: impl AsRef<[u8]>,
value: impl AsRef<[u8]>
) -> Result<Self>
Append the value of the named header.
pub fn headers(self, headers: HeaderMap) -> Self
[src]
Assign the provided headers as the defaults for all requests made by the HttpGateway
.
pub fn polling_params(self, params: PollingParams) -> Self
[src]
Set the polling parameters for the HttpGateway
.
pub fn build(self) -> HttpGateway
[src]
Creates a new HttpGateway
instance that is configured with headers expected by the
Oasis Developer gateway.
Trait Implementations
impl Clone for HttpGatewayBuilder
[src]
fn clone(&self) -> HttpGatewayBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for HttpGatewayBuilder
[src]
impl Default for HttpGatewayBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for HttpGatewayBuilder
impl Send for HttpGatewayBuilder
impl Sync for HttpGatewayBuilder
impl Unpin for HttpGatewayBuilder
impl UnwindSafe for HttpGatewayBuilder
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,