Builder

Collects the properties of a Trusted. Not thread-safe; use it only inside the factory's lambda. A property holds the caller's reference until the policy is built, which copies it.

Stable Core.

Properties

Link copied to clipboard

Whether http is allowed; false (the default) means https only.

Link copied to clipboard

The hosts to pin, as host names or IP literals (an IPv6 literal with or without brackets); empty means any host. Canonicalised when the policy is built: lower-cased, IPv6 without brackets.

Link copied to clipboard

The settings as a whole value; the default is TransportSettings.TrustedDefaults.

Functions

Link copied to clipboard

Changes settings with a block that starts from its current value. The order matters: settings = X followed by settings { } modifies X.