Skip to content

Commit

Permalink
bring back option
Browse files Browse the repository at this point in the history
  • Loading branch information
wjones127 committed Dec 12, 2023
1 parent 91bdde2 commit 4cd197a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions object_store/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,13 @@ impl ClientOptions {
self
}

/// Use http2 if supported, otherwise use http1.
pub fn with_allow_http2(mut self) -> Self {
self.http1_only = false.into();
self.http2_only = false.into();
self
}

/// Set a proxy URL to use for requests
pub fn with_proxy_url(mut self, proxy_url: impl Into<String>) -> Self {
self.proxy_url = Some(proxy_url.into());
Expand Down

0 comments on commit 4cd197a

Please sign in to comment.