【文件属性】:
文件名称:http-server:100% 用 C 编写的异步 http 服务器库
文件大小:60KB
文件格式:ZIP
更新时间:2021-05-31 19:01:12
C
概述
http-server是一个多平台 HTTP 服务器库,专注于异步 I/O。
特征
外部事件循环支持
HTTP/1.1 支持
C89兼容
文档
官方API文档
待定。
请参阅examples和tests 。
构建说明
$ mkdir build
$ cd build
$ cmake ..
$ make
建筑测试:
$ make tests
覆盖率报告:
$ make coverage
(需要lcov)
视窗
尚不支持。
【文件预览】:
http-server-master
----AUTHORS(82B)
----.gitmodules(105B)
----src()
--------event_select.c(8KB)
--------client.c(11KB)
--------event.c(1KB)
--------event.h(376B)
--------CMakeLists.txt(831B)
--------errors.c(312B)
--------header.c(530B)
--------build_config.h.in(112B)
--------string.c(2KB)
--------server.c(15KB)
--------handler.c(407B)
--------event_kqueue.c(8KB)
--------headers.c(0B)
--------response.c(7KB)
----CMakeLists.txt(576B)
----examples()
--------CMakeLists.txt(531B)
--------simple.c(2KB)
--------simple-uv.c(4KB)
--------asio.cc(14KB)
----deps()
--------CMakeLists.txt(80B)
--------http-parser()
----LICENSE(1KB)
----cmake()
--------FindLibUV.cmake(2KB)
--------CodeCoverage.cmake(6KB)
----README.md(455B)
----tests()
--------test_errors.c(969B)
--------test_blackbox.py(4KB)
--------client.c(1KB)
--------test_app.c(6KB)
--------generate.py(7KB)
--------test_response.c(12KB)
--------CMakeLists.txt(2KB)
--------clar()
--------clar.c(13KB)
--------clar.suite(3KB)
--------clar_test.h(377B)
--------strings.c(2KB)
--------test_http_server.c(4KB)
--------clar.h(4KB)
--------main.c(718B)
----.gitignore(17B)
----include()
--------http-server()