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 super::*;
use crate::profile::Platform;

#[test]
fn ja4t_linux() {
    let tcp = TcpProfile {
        window_size: 29200,
        ..Platform::Linux.tcp_profile()
    };
    assert_eq!(compute_ja4t(&tcp), "29200_2-4-8-1-3_1460_10");
}

#[test]
fn ja4t_windows() {
    let fp = compute_ja4t(&Platform::Windows.tcp_profile());
    assert_eq!(fp, "64240_2-1-3-1-1-4_1460_8");
}