fn respond(stream: &mut TcpStream, code: u16, content_type: &str, body: &[u8])
Write a complete HTTP/1.1 response and close the connection.