pub trait HttpConnector:
Debug
+ Send
+ Sync
+ 'static {
// Required method
fn connect(&self, options: &ClientOptions) -> Result<HttpClient>;
}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
Implementors§
impl HttpConnector for ReqwestConnector
Available on not (WebAssembly and WASI).
impl HttpConnector for SpawnedReqwestConnector
Available on non-WebAssembly only.