crates/nu-command/src/network/tls/tls_config.rustdoc.md
Provide a [TlsConfig] for [ureq].
This is used by Nushell's networking commands (http) to handle secure
(or optionally insecure) HTTP connections.
The returned connector enables ureq to perform HTTPS requests.
If allow_insecure is set to true, certificate verification is disabled.
This function is only available when the network feature is enabled,
and requires exactly one of the native-tls or rustls-tls features to
be active.
native-tlsWhen built with native-tls, this uses the platform TLS backend:
These are mature and widely-deployed TLS implementations. Expect strong platform integration.
rustls-tlsWhen built with rustls-tls, this uses the pure-Rust [rustls] library for TLS.
This has several benefits:
musl targets out of the boxA [NuCryptoProvider] must be configured before calling this function.
Use CRYPTO_PROVIDER.default() or
CRYPTO_PROVIDER.set(...) to initialize it.