https://github.com/cedrickchee/rust-webserver
[EXPERIMENTAL] Simple multi-threaded web server with a thread pool & graceful shutdown
https://github.com/cedrickchee/rust-webserver
educational-project rust-crate rust-lang webserver
Last synced: 2 months ago
JSON representation
[EXPERIMENTAL] Simple multi-threaded web server with a thread pool & graceful shutdown
- Host: GitHub
- URL: https://github.com/cedrickchee/rust-webserver
- Owner: cedrickchee
- Created: 2019-11-13T13:32:35.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-13T14:35:51.000Z (about 6 years ago)
- Last Synced: 2025-09-09T23:39:49.046Z (4 months ago)
- Topics: educational-project, rust-crate, rust-lang, webserver
- Language: Rust
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Web Server
A multi-threaded web server build with [Rust](https://www.rust-lang.org/) 2018 edition.
**Intention of this repo**
An **educational project** for learning Rust programming language. The method used is not the best way to build a production-ready web server with Rust.
## Building a Web Server
I've written the basic HTTP server and thread pool manually so you can learn the general ideas and techniques behind the crates you might use in the future. HTTP requests are serve using the thread pool.
We’ll work with the raw bytes of TCP and HTTP requests and responses.
## Project Status
Although this is an educational project, I have plan to continue enhancing this project, and here are some ideas:
- More robust error handling.
- Add tests of the library's functionality.
- Improve API design.
- Stretch goal: implement a single-threaded non-blocking I/O server using async-await on Rust 1.39.0.
## Demo
- _TODO: record terminal session and embed it here._