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.