pub trait HttpConnector:
Debug
+ Send
+ Sync
+ 'static {
// Required method
fn connect(&self, options: &ClientOptions) -> Result<HttpClient>;
}Available on crate feature
cloud-base only.Expand description
A factory for HttpClient
Required Methods§
Sourcefn connect(&self, options: &ClientOptions) -> Result<HttpClient>
fn connect(&self, options: &ClientOptions) -> Result<HttpClient>
Create a new HttpClient with the provided ClientOptions
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl HttpConnector for MarkerHttpConnector
Available on crate feature
reqwest and (crate features integration) and not (WASI and WebAssembly) only.impl HttpConnector for ReqwestConnector
Available on crate feature
reqwest and not (WASI and WebAssembly) only.impl HttpConnector for SpawnedReqwestConnector
Available on crate feature
reqwest and non-WebAssembly only.