pub struct HeaderProfile {
pub user_agent: String,
pub sec_ch_ua: String,
pub sec_ch_ua_platform: String,
pub sec_ch_ua_platform_version: String,
pub include_priority_header: bool,
pub zstd_encoding: bool,
}Expand description
Chrome-specific HTTP header values and Client Hint metadata.
These values are injected into every outbound request and must match
the declared platform. WAFs cross-check sec-ch-ua-platform against
the TLS handshake and TCP stack to detect spoofed identities.
Fields§
§user_agent: StringFull User-Agent header value.
sec_ch_ua: Stringsec-ch-ua Client Hint brand list.
sec_ch_ua_platform: Stringsec-ch-ua-platform Client Hint (e.g., "macOS", "Windows", "Linux").
sec_ch_ua_platform_version: Stringsec-ch-ua-platform-version Client Hint.
Must match the host OS: Windows 11 reports "13.0.0",
macOS Sequoia reports "15.0.0", Linux reports "0.0.0".
include_priority_header: boolWhether to include the RFC 9218 priority header (e.g., u=0, i).
zstd_encoding: boolWhether to advertise zstd in the accept-encoding header.
Trait Implementations§
Source§impl Clone for HeaderProfile
impl Clone for HeaderProfile
Source§fn clone(&self) -> HeaderProfile
fn clone(&self) -> HeaderProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HeaderProfile
impl Debug for HeaderProfile
Source§impl PartialEq for HeaderProfile
impl PartialEq for HeaderProfile
Source§fn eq(&self, other: &HeaderProfile) -> bool
fn eq(&self, other: &HeaderProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for HeaderProfile
impl StructuralPartialEq for HeaderProfile
Auto Trait Implementations§
impl Freeze for HeaderProfile
impl RefUnwindSafe for HeaderProfile
impl Send for HeaderProfile
impl Sync for HeaderProfile
impl Unpin for HeaderProfile
impl UnsafeUnpin for HeaderProfile
impl UnwindSafe for HeaderProfile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.