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::*;

#[test]
fn boundaries_are_distinct_between_forms() {
    let a = Form::new();
    let b = Form::new();
    assert_ne!(a.boundary(), b.boundary());
    assert!(a.boundary().starts_with("----LeylineFormBoundary"));
}

#[test]
fn content_type_carries_boundary() {
    let f = Form::new();
    let ct = f.content_type();
    assert!(ct.starts_with("multipart/form-data; boundary=----LeylineFormBoundary"));
    assert!(ct.contains(f.boundary()));
}