Struct futures_http::client::rasio::HttpClientOptionsBuilder
source · pub struct HttpClientOptionsBuilder { /* private fields */ }Expand description
A HttpClientOptions builder.
Implementations§
source§impl HttpClientOptionsBuilder
impl HttpClientOptionsBuilder
pub fn redirect<R: ToSocketAddrs>(self, raddrs: R) -> Self
sourcepub fn with_server_name(self, server_name: &str) -> Self
pub fn with_server_name(self, server_name: &str) -> Self
Set remote server’s server name, this option will rewrite request’s host field.
sourcepub fn with_ca_file<P: AsRef<Path>>(self, ca_file: P) -> Self
pub fn with_ca_file<P: AsRef<Path>>(self, ca_file: P) -> Self
Set the server verification ca file, this is useful for self signed server.
sourcepub fn set_use_server_name_indication(self, value: bool) -> Self
pub fn set_use_server_name_indication(self, value: bool) -> Self
Configures the use of Server Name Indication (SNI) when connecting. Defaults to true.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpClientOptionsBuilder
impl !RefUnwindSafe for HttpClientOptionsBuilder
impl Send for HttpClientOptionsBuilder
impl Sync for HttpClientOptionsBuilder
impl Unpin for HttpClientOptionsBuilder
impl !UnwindSafe for HttpClientOptionsBuilder
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