Skip to main content

HttpConnector

Trait HttpConnector 

Source
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§

Source

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§

Source§

impl HttpConnector for MarkerHttpConnector

Available on crate feature reqwest and (crate features integration) and not (WASI and WebAssembly) only.
Source§

impl HttpConnector for ReqwestConnector

Available on crate feature reqwest and not (WASI and WebAssembly) only.
Source§

impl HttpConnector for SpawnedReqwestConnector

Available on crate feature reqwest and non-WebAssembly only.