# httpserver **Repository Path**: Cooper0/httpserver ## Basic Information - **Project Name**: httpserver - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-24 - **Last Updated**: 2021-10-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 说明 使用mongoose写的一个简单的httpserver ## 使用方法 - 使用 `make` 编译生成test可执行文件 - 在命令行执行`sudo ./test`运行server - 在浏览器打开`http://127.0.0.1:8000/`就可以看到当前目录下的文件 - 在终端发起POST请求`curl -X POST http://127.0.0.1:8000/api/v1/test -d "data=1"`可以得到`test`的回复,在服务器终端可以取到`data=1`