pub struct HttpClient<C = HttpsConnector<HttpConnector>> { /* private fields */ }
Expand description
Http client for use with AWS services.
Implementations§
Source§impl HttpClient
impl HttpClient
Sourcepub fn new_with_config(config: HttpConfig) -> Result<Self, TlsError>
pub fn new_with_config(config: HttpConfig) -> Result<Self, TlsError>
Create a tls-enabled http client.
Sourcepub fn local_agent(&mut self, local_agent: String)
pub fn local_agent(&mut self, local_agent: String)
An alias for [local_agent_prepend
] for backwards compatibility
Sourcepub fn local_agent_prepend(&mut self, local_agent: String)
pub fn local_agent_prepend(&mut self, local_agent: String)
Sets a local agent that is prepended to the default HTTP
User-Agent
used by Rusoto.
Sourcepub fn local_agent_append(&mut self, local_agent: String)
pub fn local_agent_append(&mut self, local_agent: String)
Sets a local agent that is appended to the default HTTP
User-Agent
used by Rusoto.
Source§impl<C> HttpClient<C>
impl<C> HttpClient<C>
Sourcepub fn from_connector(connector: C) -> Self
pub fn from_connector(connector: C) -> Self
Allows for a custom connector to be used with the HttpClient
Sourcepub fn from_connector_with_config(connector: C, config: HttpConfig) -> Self
pub fn from_connector_with_config(connector: C, config: HttpConfig) -> Self
Allows for a custom connector to be used with the HttpClient with extra configuration options
Sourcepub fn from_builder(builder: HyperBuilder, connector: C) -> Self
pub fn from_builder(builder: HyperBuilder, connector: C) -> Self
Alows for a custom builder and connector to be used with the HttpClient
Trait Implementations§
Source§impl<C> DispatchSignedRequest for HttpClient<C>
impl<C> DispatchSignedRequest for HttpClient<C>
Source§fn dispatch(
&self,
request: SignedRequest,
timeout: Option<Duration>,
) -> DispatchSignedRequestFuture
fn dispatch( &self, request: SignedRequest, timeout: Option<Duration>, ) -> DispatchSignedRequestFuture
Dispatch Request, and then return a Response
Auto Trait Implementations§
impl<C> Freeze for HttpClient<C>where
C: Freeze,
impl<C = HttpsConnector<HttpConnector>> !RefUnwindSafe for HttpClient<C>
impl<C> Send for HttpClient<C>where
C: Send,
impl<C> Sync for HttpClient<C>where
C: Sync,
impl<C> Unpin for HttpClient<C>where
C: Unpin,
impl<C = HttpsConnector<HttpConnector>> !UnwindSafe for HttpClient<C>
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