https://github.com/pythonbyte/http-server-rust
Implementation of a HTTP server from scratch using Rust 🦀
https://github.com/pythonbyte/http-server-rust
http-server rust rust-lang web
Last synced: 4 months ago
JSON representation
Implementation of a HTTP server from scratch using Rust 🦀
- Host: GitHub
- URL: https://github.com/pythonbyte/http-server-rust
- Owner: pythonbyte
- Created: 2024-08-17T23:59:22.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-18T01:45:08.000Z (almost 2 years ago)
- Last Synced: 2025-10-27T05:36:59.562Z (8 months ago)
- Topics: http-server, rust, rust-lang, web
- Language: Rust
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Introduction
This project is an implementation of an HTTP server from scratch using Rust. The server is capable of handling dynamic requests and multiple requests concurrently using threads.
**Key Features**
* 🔧 Built entirely from scratch, no external HTTP libraries
* 🦀 Leverages Rust's safety and concurrency features
* 🌐 Implements core HTTP/1.1 functionalities
* 🚦 Handles multiple concurrent connections efficiently
* 📚 Educational resource for understanding HTTP internals and Rust networking
## Usage
To run the server, execute the following command:
```bash
cargo run
```
The server will start running on `127.0.0.1:4221`.
To test the server, open a browser and navigate to
```bash
curl -v http://localhost:4221/echo/test
```
**Response**
```bash
* Connected to localhost (127.0.0.1) port 4221
> GET /echo/test HTTP/1.1
> Host: localhost:4221
> User-Agent: curl/8.7.1
> Accept: */*
>
* Request completely sent off
< HTTP/1.1 200 OK
< Content-Type: text/plain
< Content-Length: 4
<
* Connection #0 to host localhost left intact
test%
```