leyline-http 0.1.5

HTTP client that impersonates Chrome, Firefox, and Safari on the wire: TLS (JA3/JA4), HTTP/2, and HTTP/3 fingerprints
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::tcp::TcpProfile;

pub fn compute_ja4t(tcp: &TcpProfile) -> String {
    let options = tcp
        .options
        .iter()
        .map(u8::to_string)
        .collect::<Vec<_>>()
        .join("-");
    format!(
        "{}_{options}_{}_{}",
        tcp.window_size, tcp.mss, tcp.window_scale
    )
}

#[cfg(test)]
mod tests;