The primary goal for
clobber is speed; we want to make TCP requests as fast as possible. If
you're interested in reading the code, go check out
tcp.rs for the interesting part!
This library is used internally by the main.rs binary and the tests, and is not intended for general use in other projects. (But if you're interested, post an issue; I'd be happy to hear about it!)
let addr = "127.0.0.1:8000".parse().unwrap(); let message = Message::new(b"GET / HTTP/1.1\r\nHost: localhost:8000\r\nConnection: close\r\n\r\n".to_vec()); let config = ConfigBuilder::new(addr) .connections(10) .build(); tcp::clobber(config, message).unwrap();
Settings that control the test
Echo server for testing todo: Util server to capture request and save to file