1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
pub mod request; pub mod response; /* Request: POST /teste HTTP/1.0 Host: 127.0.0.1:1509 Keep-Alive: 300 Connection: keep-alive User-Agent: Mozilla/4.0 (compatible; Synapse) Content-Type: application/x-www-form-urlencoded/json Content-Length: 24 */ #[cfg(test)] mod tests { use super::hello; #[test] fn test_hello() { assert_eq!(hello(), "Hello, world!"); } }