Struct rusoto_core::request::HttpClient
source · [−]pub struct HttpClient<C = HttpsConnector<HttpConnector>> { /* private fields */ }
Expand description
Http client for use with AWS services.
Implementations
sourceimpl 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.
sourceimpl<C> HttpClient<C> where
C: Connect + Clone + Send + Sync,
impl<C> HttpClient<C> where
C: Connect + Clone + Send + Sync,
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
sourceimpl<C> DispatchSignedRequest for HttpClient<C> where
C: Connect + Clone + Send + Sync + 'static,
impl<C> DispatchSignedRequest for HttpClient<C> where
C: Connect + Clone + Send + Sync + 'static,
sourcefn 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 = HttpsConnector<HttpConnector<GaiResolver>>> !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<GaiResolver>>> !UnwindSafe for HttpClient<C>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more