Skip to content

Commit

Permalink
modern sync: Allow specifying https config when building default eden…
Browse files Browse the repository at this point in the history
…api client

Summary: ^

Reviewed By: mitrandir77

Differential Revision: D66522045

fbshipit-source-id: c1177c71285676c70c30454dc46ed737dba8ae9b
  • Loading branch information
lmvasquezg authored and facebook-github-bot committed Nov 27, 2024
1 parent b645db9 commit f19c2ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions eden/scm/lib/edenapi/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,13 @@ impl HttpClientBuilder {
self.http_config.convert_cert = enable;
self
}

/// Specify settings for the underlying HTTP client for non-Sapling
/// edenapi clients.
pub fn http_config(mut self, http_config: http_client::Config) -> Self {
self.http_config = http_config;
self
}
}

fn get_config<T: FromConfigValue>(
Expand Down
1 change: 1 addition & 0 deletions eden/scm/lib/edenapi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub use edenapi_trait::Entries;
pub use edenapi_trait::Response;
pub use edenapi_trait::ResponseMeta;
pub use edenapi_types as types;
pub use http_client::Config as HttpClientConfig;
pub use http_client::Stats;

pub use crate::api::SaplingRemoteApi;
Expand Down

0 comments on commit f19c2ab

Please sign in to comment.