async fn serve_connection(
stream: Async<TcpStream>,
dir: PathBuf,
) -> Result<(), String>Expand description
Answer every request on one connection.
hyper keeps the connection alive between requests by default, which is what a browser expects; a connection error ends it.