| Crates.io | adra_multi_threaded_web_server |
| lib.rs | adra_multi_threaded_web_server |
| version | 0.1.0 |
| created_at | 2024-09-01 17:21:03.811529+00 |
| updated_at | 2024-09-01 17:21:03.811529+00 |
| description | A multi-threaded web server implemented in Rust |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1359782 |
| size | 13,687 |
A simple, multi-threaded web server implemented in Rust.
Clone the repository
Run the server:
cargo run
Access the server at http://localhost:7878
Parses incoming HTTP requests
Serves index.html for root path ("/")
Returns 404.html for unrecognized paths
Drop trait for ThreadPoolFixed thread pool size to prevent resource exhaustion
Efficient handling of concurrent requests
Potential for future improvements (e.g., connection pooling, caching)
src/main.rs: Main server logicsrc/lib.rs: Thread pool implementationindex.html: Home page404.html: Not Found pageContributions are welcome! Please submit a pull request or create an issue for any bugs or feature requests.