A single threaded HTTP server written in Rust as a part of the grit:lab curriculum.
- Custom handlers
- Standard handlers for
GET, HEAD, OPTIONS, TRACE, POST, PUT, DELETE & PATCH - Support for chunked requests with the
Transfer-Encodingheader. - Support for
JavaScript, Python, PHP and RubyCGI. - Sessions
- Server logs
- Dynamic default error page
- Install Rust
- run
cargo runin the root of this directory
The demo configuration will give you these following routes:
/api/update-cookie- Handler to update a cookie on the server/api/get-cookie- Handler to get a cookie from the server/api/cookie-demo- Dynamic session demo/cgi- Demo path for implemented CGI/files- Access anything you want in the /files directory. Highly recommend to remove this endpoint in production./test.txt- Used for testing files on the server/test-dir- Used for testing directories on the server