Skip to main content

HttpConnector

Trait HttpConnector 

Source
pub trait HttpConnector:
    Debug
    + Send
    + Sync
    + 'static {
    // Required method
    fn connect(&self, options: &ClientOptions) -> Result<HttpClient, Error>;
}
Available on crate feature arrow-59 and crate feature cloud and (crate features arrow-58 or arrow-59) only.
Expand description

A factory for HttpClient

Required Methods§

Source

fn connect(&self, options: &ClientOptions) -> Result<HttpClient, Error>

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 ReqwestConnector

Available on not (WASI and WebAssembly).
Source§

impl HttpConnector for SpawnedReqwestConnector

Available on non-WebAssembly only.