pub trait HttpClientFactory: Send + Sync {
// Required method
fn create(&self, config: &ConfigSet) -> RemoteResult<Box<dyn HttpClient>>;
}Expand description
Builds HTTP clients for smart-HTTP remotes.
Required Methods§
Sourcefn create(&self, config: &ConfigSet) -> RemoteResult<Box<dyn HttpClient>>
fn create(&self, config: &ConfigSet) -> RemoteResult<Box<dyn HttpClient>>
Create a client honoring repository HTTP/credential config.
§Errors
Returns an error when the client cannot be constructed.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".