Skip to content

Commit

Permalink
Merge pull request #25 from Signor-Koala/master
Browse files Browse the repository at this point in the history
Update `rust-webserver` Task
  • Loading branch information
harshkhandeparkar authored May 5, 2023
2 parents 58cbb81 + e33b30c commit 62938b8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions backend/rust-webserver.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Writing a simple Web Server with Rust!

Write a web server that:
Write a multithreaded web server using only the standard library that:
- Listens on a specified port (5000/8000)
- Has a single endpoint, that serves 1 HTML file, along with CSS and a JS script.
- Has a single endpoint, that serves 1 HTML file, along with CSS and a JS script.
- Can handle upto 4 incoming connections at a time.
- Has a counter that counts the number of visitors that have visited the site.

Explain all the crates you have used, and write a detailed README with build/run instructions.
You are not allowed to use external crates and only can use the `std` crate for the webserver.

Explain in detail how Rust's borrow checker and type safety provides advantages for safety.

(Optional) Tell us how you could deploy this application using Docker. This is purely an optional component, and you could feel free to ignore

Expand All @@ -14,7 +18,4 @@ Rust, HTTP

## Relevant Material
- https://doc.rust-lang.org/book/
- https://docs.microsoft.com/en-us/learn/modules/rust-get-started/
- https://www.fifthtry.com/amitu/realm/
- https://doc.rust-lang.org/book/ch20-01-single-threaded.html
- https://hyper.rs/

0 comments on commit 62938b8

Please sign in to comment.