Skip to main content

should_force_k6_http1

Function should_force_k6_http1 

Source
pub fn should_force_k6_http1(
    wafbench_verbatim: bool,
    templates: &[RequestTemplate],
    extra_headers: &HashMap<String, String>,
) -> bool
Expand description

Round 63 (#79): force k6 onto HTTP/1.1 (GODEBUG=http2client=0) when --wafbench-verbatim is set (those files routinely set Connection) or when any request actually has a Connection header.