Skip to content

Commit

Permalink
Hiding the feature behind a feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptiste LE MORLEC committed Nov 24, 2023
1 parent e85aef4 commit 3009841
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ rustls-tls = ["reqwest/rustls-tls", "graph-http/rustls-tls", "graph-oauth/rustls
brotli = ["reqwest/brotli"]
deflate = ["reqwest/deflate"]
trust-dns = ["reqwest/trust-dns"]
https-not-required = ["graph-http/https-not-required"]

[dev-dependencies]
bytes = { version = "1.4.0" }
Expand Down
1 change: 1 addition & 0 deletions graph-http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ graph-core = { path = "../graph-core" }
default = ["native-tls"]
native-tls = ["reqwest/native-tls"]
rustls-tls = ["reqwest/rustls-tls"]
https-not-required = []
1 change: 1 addition & 0 deletions graph-http/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ impl GraphClientConfiguration {
self
}

#[cfg(feature = "https-not-required")]
pub fn https_only(mut self, https_only: bool) -> GraphClientConfiguration {
self.config.https_only = https_only;
self
Expand Down

0 comments on commit 3009841

Please sign in to comment.