Skip to content

Commit

Permalink
feat(http_config): add withTrustedRoots config parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Nov 4, 2024
1 parent a3156ac commit 28fbb08
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/src/binding_http/http_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,14 @@ class HttpConfig {
class HttpClientConfig {
/// Creates a new [HttpClientConfig] object.
const HttpClientConfig({
this.withTrustedRoots = true,
this.trustedCertificates,
});

/// Indicates whether the security contexts created from this config will
/// incorporate trusted root certificates from the underlying platform.
final bool withTrustedRoots;

/// List of trusted certificates that will be added to the security contexts
/// of newly created HTTP clients.
///
Expand Down

0 comments on commit 28fbb08

Please sign in to comment.