pub struct OrderedHeaders { /* private fields */ }Expand description
Ordered headers with JA4H fingerprint calculation.
JA4H (JA4 for HTTP) fingerprints HTTP clients based on:
- Header order
- Header names (normalized to lowercase)
- Header values (normalized)
This type preserves exact header order for fingerprint accuracy.
Implementations§
Source§impl OrderedHeaders
impl OrderedHeaders
Create Chrome navigation headers with exact order. Uses Chrome 146 (latest) by default.
Create Firefox navigation headers with exact order.
Sourcepub fn ja4h_fingerprint(&self) -> String
pub fn ja4h_fingerprint(&self) -> String
Calculate JA4H fingerprint string.
JA4H format: header_names|header_order_hash
- header_names: comma-separated lowercase header names
- header_order_hash: hash of header order
Trait Implementations§
Source§impl Clone for OrderedHeaders
impl Clone for OrderedHeaders
Source§fn clone(&self) -> OrderedHeaders
fn clone(&self) -> OrderedHeaders
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 OrderedHeaders
impl Debug for OrderedHeaders
Auto Trait Implementations§
impl Freeze for OrderedHeaders
impl RefUnwindSafe for OrderedHeaders
impl Send for OrderedHeaders
impl Sync for OrderedHeaders
impl Unpin for OrderedHeaders
impl UnsafeUnpin for OrderedHeaders
impl UnwindSafe for OrderedHeaders
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more