๐Ÿ“ฆ tolik518 / http-server-rust

Small http-server written in rust as a codecrafters challenge

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching
๐Ÿ“ฅ Clone https://github.com/tolik518/http-server-rust.git
HTTPS git clone https://github.com/tolik518/http-server-rust.git
SSH git clone git@github.com:tolik518/http-server-rust.git
CLI gh repo clone tolik518/http-server-rust
Anatolij Vasilev Anatolij Vasilev Update README.md 8e1aebf 1 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ src
๐Ÿ“„ .gitattributes
๐Ÿ“„ .gitignore
๐Ÿ“„ Cargo.lock
๐Ÿ“„ Cargo.toml
๐Ÿ“„ codecrafters.yml
๐Ÿ“„ README.md
๐Ÿ“„ your_server.sh
๐Ÿ“„ README.md
progress-banner

This is a starting point for Rust solutions to the "Build Your Own HTTP server" Challenge.

HTTP is the protocol that powers the web. In this challenge, you'll build a HTTP/1.1 server that is capable of serving multiple clients.

Along the way you'll learn 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.


All of the stages were cleared in the repo, but, especially, the request.rs is not optimized at all. It would have been better to use .seek(&mut buf) than working with tcp_stream.bytes() directly