pub struct HeaderProfile {
pub name: &'static str,
pub user_agent: &'static str,
pub accept: &'static str,
pub accept_language: &'static str,
pub accept_encoding: &'static str,
pub sec_fetch_site: &'static str,
pub sec_fetch_mode: &'static str,
pub sec_fetch_dest: &'static str,
}Expand description
Canonical browser HTTP header projection of a StealthProfile.
One of the <Domain>Profile facets (see the crate-level vocabulary): a pure,
const-friendly view of the request headers a given browser identity sends.
scanclient/karyx re-export this directly (header data without the heavy
stealth stack); stealth::http/stealth::fingerprint re-export it as the
single header-catalog type — it replaces the former duplicate BrowserProfile
structs in stealth::fingerprint::browser_catalog and this crate.
Fields§
§name: &'static strStable profile name used by config and CLI flags.
user_agent: &'static strUser-Agent header value.
accept: &'static strAccept header value.
accept_language: &'static strAccept-Language header value.
accept_encoding: &'static strAccept-Encoding header value.
sec_fetch_site: &'static strSec-Fetch-Site navigation value.
sec_fetch_mode: &'static strSec-Fetch-Mode navigation value.
sec_fetch_dest: &'static strSec-Fetch-Dest navigation value.
Implementations§
Source§impl HeaderProfile
impl HeaderProfile
Sourcepub const fn headers(self) -> [NavigationHeader; 4]
pub const fn headers(self) -> [NavigationHeader; 4]
Browser-shaped HTTP headers represented by this compatibility profile.
Unlike profile_navigation_headers, this legacy compatibility view
includes Accept-Encoding because scanclient::tls_profiles has
exposed that field since before the canonical profile catalog existed.
Trait Implementations§
Source§impl Clone for HeaderProfile
impl Clone for HeaderProfile
Source§fn clone(&self) -> HeaderProfile
fn clone(&self) -> HeaderProfile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for HeaderProfile
Source§impl Debug for HeaderProfile
impl Debug for HeaderProfile
impl Eq for HeaderProfile
Source§impl PartialEq for HeaderProfile
impl PartialEq for HeaderProfile
Source§fn eq(&self, other: &HeaderProfile) -> bool
fn eq(&self, other: &HeaderProfile) -> bool
self and other values to be equal, and is used by ==.