trusted
fun trusted(configure: OutboundUrlPolicy.Trusted.Builder.() -> Unit = {}): OutboundUrlPolicy.Trusted(source)
Builds a Trusted policy from the defaults (no pins, https only, TransportSettings.TrustedDefaults) and configure.
Return
the policy.
Parameters
configure
assigns the properties to change; empty by default, for the defaults.
Throws
if a pinned host is not a host name or IP literal, or a settings { } block breaks a settings rule.
fun trusted(from: OutboundUrlPolicy.Trusted, configure: OutboundUrlPolicy.Trusted.Builder.() -> Unit): OutboundUrlPolicy.Trusted(source)
Builds a Trusted policy that starts from from.
Return
the new policy.
Parameters
from
the policy to start from; never modified.
configure
assigns the properties to change.
Throws
as the other overload does.