Skip to main content

case_mix

Function case_mix 

Source
pub fn case_mix(header_name: &str) -> String
Expand description

Apply case mixing to a header name.

Produces cOnTeNt-TyPe style output. HTTP header names are defined as case-insensitive (RFC 7230 ยง3.2), so servers accept any casing, but some WAFs only match canonical Content-Type.