This HTTP server is described in The Rust Book in its final chapter
Given Rust is installed
cargo run
The list of homework from The Rust Book
right above
the summary
on the last page:
- Add more documentation to
ThreadPool
and its public methods. - Add tests of the library’s functionality.
- Change calls to
unwrap
to more robust error handling. - Use
ThreadPool
to perform some task other than serving web requests. - Find a thread pool crate on crates.io and implement a similar web server using the crate instead. Then compare its API and robustness to the thread pool we implemented.