pub struct Client<B, T: Transport<B>> {
pub transport: T,
pub phantom_body: PhantomData<B>,
pub endpoint: Cow<'static, str>,
pub authorization: Option<HeaderValue>,
pub extra_headers: HeaderMap,
}Fields§
§transport: T§phantom_body: PhantomData<B>§endpoint: Cow<'static, str>§extra_headers: HeaderMapImplementations§
Source§impl Client<Body, HttpsTransport>
impl Client<Body, HttpsTransport>
Sourcepub fn new_https_client(
endpoint: Cow<'static, str>,
) -> Client<Body, HttpsTransport>
pub fn new_https_client( endpoint: Cow<'static, str>, ) -> Client<Body, HttpsTransport>
Create a new client using transport::HttpsTransport and hyper::Body.
Sourcepub fn new_https_retry_client(
endpoint: Cow<'static, str>,
retry_config: RetryConfig,
) -> Client<Vec<u8>, HttpsRetryTransport>
pub fn new_https_retry_client( endpoint: Cow<'static, str>, retry_config: RetryConfig, ) -> Client<Vec<u8>, HttpsRetryTransport>
Create a new client using transport::HttpsRetryTransport and hyper::Body.
Auto Trait Implementations§
impl<B, T> !Freeze for Client<B, T>
impl<B, T> RefUnwindSafe for Client<B, T>where
T: RefUnwindSafe,
B: RefUnwindSafe,
impl<B, T> Send for Client<B, T>where
B: Send,
impl<B, T> Sync for Client<B, T>where
B: Sync,
impl<B, T> Unpin for Client<B, T>
impl<B, T> UnwindSafe for Client<B, T>where
T: UnwindSafe,
B: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more