Skip to main content

build_profiled_client_with_control

Function build_profiled_client_with_control 

Source
pub fn build_profiled_client_with_control(
    profile: &TlsProfile,
    proxy_url: Option<&str>,
    control: TlsControl,
) -> Result<Client, TlsClientError>
Expand description

Build a [reqwest::Client] with explicit TLS profile control settings.

introducing native build dependencies.

ยงExample

use stygian_browser::tls::{build_profiled_client_with_control, CHROME_131, TlsControl};

let client = build_profiled_client_with_control(
    &CHROME_131,
    None,
    TlsControl::strict(),
).unwrap();
let _ = client;