Hacker News new | ask | show | jobs
by nevi-me 2887 days ago
Thanks, that makes sense. I haven't built web servers with Rust as yet; so it was a bit difficult to follow the code.
1 comments

This is good enough for an example, but for a "real" web server, you wouldn't do this; you'd use a framework that handles a lot of this kind of thing for you. I think this code was adapted from the final chapter of the Rust book, which is mostly about learning how to write a simple thing than being production-ready.