Skip to main content

browser_headers

Function browser_headers 

Source
pub fn browser_headers(profile: &TlsProfile) -> HeaderMap
Expand description

HTTP headers that match the browser identity of profile.

Anti-bot systems cross-correlate HTTP headers (especially Accept, Accept-Language, Accept-Encoding, and the Sec-CH-UA family) against the TLS fingerprint. Mismatches between the TLS profile and the HTTP headers are a strong detection signal.

of this type would send on a standard navigation request.

ยงExample

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

let headers = browser_headers(&CHROME_131);
assert!(headers.contains_key("accept"));