Skip to main content

agent

Function agent 

Source
pub fn agent() -> Agent
Expand description

Create a new HTTP agent configured with native-tls.

This explicitly configures native-tls as the TLS provider, which uses the system’s TLS library (Schannel on Windows, OpenSSL on Linux, Security.framework on macOS).

We use PlatformVerifier to use the system’s built-in root certificates.