GitHub - HalilFocic/rust-web-server: Simple multithreaded web server written in Rust following "The Book"

Web server written in Rust that uses ThreadPools to handle multiple requests. Supports GET, POST, PATCH and DELETE methods.
For example hitting the route /file.txt will resolve in following:

  • GET: Retrieves the text content of the file at /public/file.txt
  • POST: Appends text content to file or creates the file if it wasn't present.
  • PATCH: Replaced text content in a file. Throws error if file is not present.
  • DELETE: Deletes the file or throws error if it doesn't exist.
  1. Clone repository
$ git clone https://github.com/HalilFocic/rust-web-server.git
  1. Run the project

Future plans for the project:

  • Add file tree view to index page ( / )
  • Add ability to write and preview markdown