This server allows for file browsing the host's file system.
It is a simple web server built from the ground up using Rust.
The server is designed to demonstrate basic networking concepts, HTTP request handling, and multi-threading in Rust.
/fs
: Shows all the files in a given host's directory/sleep
: Serves a basic static html page after a 5 seconds delay. Useful for demonstrating the multithreaded behavior of the server/
: Welcome page which links to other pages
- Serve the file system
- Basic HTTP request/response handling
- Multi-threaded requests handling, capped at 4 threads
- Custom routing and static file serving
- Built with Rust's
std::net
,std::thread
, andstd::io
libraries
Before you can run the web server, you need to have the following:
- Rust installed
- A terminal
- Clone the repo
- Build and run the project with
cargo run --release
- Open
http://localhost:7878
on a browser