libuv httpserver基于libuv和http parser的简单Web服务器
libuv-httpserver 作者:赖安
最后修改时间:2014.12.23
基于libuv和http-parser的简单Web服务器。(只回显 Hello, World!
)
依赖关系
它需要最新的稳定版本:
-
Release v1.0.2 (2014.12.10发布)
-
Release v2.3 (2014.5.13发布)
如何确保你在OS X上
-
安装了Xcode。
-
安装了git,然后执行以下命令:
git clone git@github.com:Ryannnn/libuv-httpserver.git && cd libuv-httpserver
git submodule update --init
make
./httpserver
测试
安装了Xcode。
安装了git,然后执行以下命令:
git clone git@github.com:Ryannnn/libuv-httpserver.git && cd libuv-httpserver
git submodule update --init
make
./httpserver
使用curl进行测试:
curl 127.0.0.1:8888
资源:Ryan Dahl的教程 (2011),A
下载地址
用户评论
这个文件的价值在于它提供了一个简洁而实用的Web服务器示例,让用户能够快速验证自己的代码或学习基本概念。