Update src/advance/async/web-server.md

pull/1545/head
Sunface 2 weeks ago committed by GitHub
parent 8a3f62cb6e
commit 94611cdae5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -323,6 +323,8 @@ async fn test_handle_connection() {
write_data: Vec::new(),
};
// let mut buf = [0u8; 1024];
// stream.read(&mut buf).await.unwrap();
handle_connection(&mut stream).await;
let expected_contents = fs::read_to_string("hello.html").unwrap();

Loading…
Cancel
Save