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.
§Errors
Returns TlsClientError::TlsConfig when
profile.to_rustls_config_with_control(control) reports unsupported
cipher suites or groups, and TlsClientError::Reqwest when
proxy_url cannot be parsed or the underlying
reqwest::ClientBuilder::build call fails.
§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;