Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amstonn/simple-http-server
Simple HTTP server 简易HTTP服务器
https://github.com/amstonn/simple-http-server
cpp http http-server
Last synced: about 1 month ago
JSON representation
Simple HTTP server 简易HTTP服务器
- Host: GitHub
- URL: https://github.com/amstonn/simple-http-server
- Owner: Amstonn
- Created: 2024-11-12T07:22:38.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-12T14:28:08.000Z (about 2 months ago)
- Last Synced: 2024-11-12T15:29:35.624Z (about 2 months ago)
- Topics: cpp, http, http-server
- Language: C++
- Homepage:
- Size: 3.45 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple HTTP server 简易HTTP服务器
## 运行方式
- 到build目录执行 make
- 然后启动bin目录下的可执行文件即可*注意:在HttpServer.cpp的accept_reques函数实现中可能需要修改htdocs所在的路径*
## 核心框架
![](./img/Frame.jpg)
## 访问
- 通过访问http://localhost:8888/index.html可以访问静态文件资源
![alt text](./img/image0.png)
- 通过访问http://localhost:8888/firstcgi可以访问htdocs中的cgi程序 子进程运行程序并将输出结果返回给客户端
![alt text](./img/image.png)