This is my solution to the "Build Your Own HTTP server" Challenge.
In this repository you'll find a HTTP/1.1 server that is capable of serving multiple clients.
This server can
- Work with multiple clients at the same time using threads
- Save env context using command line args
- Handle routes that work with files
- Be extended by using the abstraction layer for creating new routes
- Ensure you have
cargo (1.80)installed locally - Run
./your_program.shto run your program, which is implemented insrc/main.rs.- Note: if you want to work with files specify a directory flag
./your_program.sh --directory <your_directory>
- Note: if you want to work with files specify a directory flag
To learn more about TCP servers, HTTP request syntax, and more.
Note: If you're viewing this repo on GitHub, head over to codecrafters.io to try the challenge.