A simple HTTP server built for the CodeCrafters HTTP Server challenge.
Split into two crates:
server
: A library for running a generic HTTP server.codecrafters-http-server
: The application code, implementing only the specific endpoints required for the challenge.
The server
package (while definitely not a production-ready server, and never will be!) supports:
- Templated path routing
- Returns a 404 if not found
- Returns a 405 if found, but method doesn't match
- Reading request headers, body, path, method
- Simple builder for creating an HTTP response
- Concurrent requests
- Response gzip compression