https://github.com/laqudee/rust_httpserver
Rust搭建的http与httpserver
https://github.com/laqudee/rust_httpserver
http http-server rust
Last synced: about 1 year ago
JSON representation
Rust搭建的http与httpserver
- Host: GitHub
- URL: https://github.com/laqudee/rust_httpserver
- Owner: laqudee
- Created: 2023-03-07T14:04:38.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-23T08:33:09.000Z (about 3 years ago)
- Last Synced: 2025-01-28T15:18:53.350Z (about 1 year ago)
- Topics: http, http-server, rust
- Language: Rust
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rust Http HttpServer
- Rust Server
- Rust Client
- Actix
## Web Server
- Server,监听进来的TCP字节流
- Router,接受HTTP请求,并决定调用哪个Handler
- Handler,处理HTTp请求,构建HTTP响应
- HTTP Library
- 解释字节流,把它转化为HTTP请求
- 把HTTP响应转化为字节流
- 构建步骤:
- 解析HTTP请求
- 构建HTTP请求
- 路由与Handler
- 测试Web Server
- 数据结构
- HttpRequest struct
- Method enum
- Version enum
- 三个数据结构要实现三个Trait
- From<&str>
- Debug
- PartialEq