Skip to main content

build_profiled_client_strict

Function build_profiled_client_strict 

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

Build a strict TLS-profiled [reqwest::Client].

Strict mode rejects unsupported cipher suites instead of silently skipping them.

§Example

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

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

§Errors

Returns TlsClientError::TlsConfig when the underlying TlsProfile::to_rustls_config_with_control call fails because TlsControl::strict() rejects an unsupported cipher suite or supported group, plus TlsClientError::Reqwest for the wrapped reqwest::ClientBuilder failures (including proxy URL parsing).