Skip to main content

build_profiled_client_preset

Function build_profiled_client_preset 

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

Build a [reqwest::Client] using profile-specific control presets.

without manually selecting TlsControl fields.

ยงExample

use stygian_browser::tls::{build_profiled_client_preset, CHROME_131};

let client = build_profiled_client_preset(&CHROME_131, None).unwrap();
let _ = client;