A simple HTTP server implementation in Rust that handles basic web requests.
This project implements a basic HTTP server that:
- Listens on port 3000
- Handles HTTP requests
- Serves responses with appropriate status codes
- Supports basic routing
- Rust programming language (latest stable version)
- Cargo (Rust's package manager)
- Clone the repository:
- Build the project:
cargo build
- Run the server:
cargo run -p httpserver
- Run tests:
cargo test -p httpserver
The server will start running on localhost:3000
by default.
You can test the server using:
- A web browser: Navigate to
http://localhost:3000
- cURL:
curl http://localhost:3000
- Any HTTP client of your choice