Struct aws_smithy_runtime::client::http::hyper_014::HyperConnectorBuilder
source · pub struct HyperConnectorBuilder { /* private fields */ }
Expand description
Builder for HyperConnector
.
Implementations§
source§impl HyperConnectorBuilder
impl HyperConnectorBuilder
sourcepub fn build<C>(self, tcp_connector: C) -> HyperConnector
pub fn build<C>(self, tcp_connector: C) -> HyperConnector
Create a HyperConnector
from this builder and a given connector.
sourcepub fn sleep_impl(self, sleep_impl: impl AsyncSleep + 'static) -> Self
pub fn sleep_impl(self, sleep_impl: impl AsyncSleep + 'static) -> Self
Set the async sleep implementation used for timeouts
Calling this is only necessary for testing or to use something other than
default_async_sleep
.
sourcepub fn set_sleep_impl(
&mut self,
sleep_impl: Option<SharedAsyncSleep>,
) -> &mut Self
pub fn set_sleep_impl( &mut self, sleep_impl: Option<SharedAsyncSleep>, ) -> &mut Self
Set the async sleep implementation used for timeouts
Calling this is only necessary for testing or to use something other than
default_async_sleep
.
sourcepub fn connector_settings(
self,
connector_settings: HttpConnectorSettings,
) -> Self
pub fn connector_settings( self, connector_settings: HttpConnectorSettings, ) -> Self
Configure the HTTP settings for the HyperAdapter
sourcepub fn set_connector_settings(
&mut self,
connector_settings: Option<HttpConnectorSettings>,
) -> &mut Self
pub fn set_connector_settings( &mut self, connector_settings: Option<HttpConnectorSettings>, ) -> &mut Self
Configure the HTTP settings for the HyperAdapter
sourcepub fn hyper_builder(self, hyper_builder: Builder) -> Self
pub fn hyper_builder(self, hyper_builder: Builder) -> Self
Override the Hyper client Builder
used to construct this client.
This enables changing settings like forcing HTTP2 and modifying other default client behavior.
sourcepub fn set_hyper_builder(&mut self, hyper_builder: Option<Builder>) -> &mut Self
pub fn set_hyper_builder(&mut self, hyper_builder: Option<Builder>) -> &mut Self
Override the Hyper client Builder
used to construct this client.
This enables changing settings like forcing HTTP2 and modifying other default client behavior.