Update README

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
main
Jianhui Zhao 2019-08-31 16:56:05 +08:00
parent 99505ae0f1
commit a94ce74860
2 changed files with 20 additions and 31 deletions

View File

@ -17,30 +17,25 @@
[![Release Version][7]][8] [![Release Version][7]][8]
[![Build Status][9]][10] [![Build Status][9]][10]
[libubox]: https://git.openwrt.org/?p=project/libubox.git [libev]: http://software.schmorp.de/pkg/libev.html
[uhttpd]: https://git.openwrt.org/?p=project/uhttpd.git [http-parser]: https://github.com/nodejs/http-parser
[ustream-ssl]: https://git.openwrt.org/?p=project/ustream-ssl.git
[openssl]: https://github.com/openssl/openssl [openssl]: https://github.com/openssl/openssl
[mbedtls]: https://github.com/ARMmbed/mbedtls [mbedtls(polarssl)]: https://github.com/ARMmbed/mbedtls
[CyaSSl(wolfssl)]: https://github.com/wolfSSL/wolfssl
[CyaSSl(wolfssl)]: https://github.com/wolfSSL/wolfssl [CyaSSl(wolfssl)]: https://github.com/wolfSSL/wolfssl
A Lightweight and fully asynchronous HTTP server library based on [libubox] and referenced A Lightweight and fully asynchronous HTTP server library based on [libev] and [http-parser] for Embedded Linux.
from [uhttpd] for Embedded Linux.
`Keep Watching for More Actions on This Space`
# Features # Features
* Lightweight and fully asynchronous * Lightweight and fully asynchronous
* Use [libubox] as its event backend * Use [libev] as its event backend
* Support HTTPS - OpenSSL, mbedtls and CyaSSl(wolfssl) * Support HTTPS - OpenSSL, mbedtls and CyaSSl(wolfssl)
* Flexible - you can easily extend your application to have HTTP/HTTPS services * Flexible - you can easily extend your application to have HTTP/HTTPS services
* Code structure is concise and understandable, also suitable for learning * Code structure is concise and understandable, also suitable for learning
* Lua Template - Embed Lua code into HTML code, like embedding PHP into HTML
* Lua binding
# Dependencies # Dependencies
* [libubox] * [libev]
* [ustream-ssl] - If you need to support SSL * [http-parser] - Has been integrated into the source code.
* [mbedtls] - If you choose mbedtls as your SSL backend * [mbedtls] - If you choose mbedtls as your SSL backend
* [CyaSSl(wolfssl)] - If you choose wolfssl as your SSL backend * [CyaSSl(wolfssl)] - If you choose wolfssl as your SSL backend
* [openssl] - If you choose openssl as your SSL backend * [openssl] - If you choose openssl as your SSL backend
@ -59,11 +54,11 @@ See which configuration are supported
# Run Example # Run Example
Run Run
~/libuhttpd/build$ ./example/helloworld ~/libuhttpd/build$ ./example/example
Then use the command curl or browser to test Then use the command curl or browser to test
$ curl -k 'https://127.0.0.1:8000/hello?name=test' -d '{"name":"libuhttpd"}' -v $ curl 'https://127.0.0.1:8000' -v
# Install on OpenWrt # Install on OpenWrt
opkg update opkg update
@ -78,6 +73,4 @@ If the install command fails, you can [compile it yourself](/BUILDOPENWRT.md).
If you would like to help making [libuhttpd](https://github.com/zhaojh329/libuhttpd) better, If you would like to help making [libuhttpd](https://github.com/zhaojh329/libuhttpd) better,
see the [CONTRIBUTING.md](https://github.com/zhaojh329/libuhttpd/blob/master/CONTRIBUTING.md) file. see the [CONTRIBUTING.md](https://github.com/zhaojh329/libuhttpd/blob/master/CONTRIBUTING.md) file.
# QQ group: 153530783
# If the project is helpful to you, please do not hesitate to star. Thank you! # If the project is helpful to you, please do not hesitate to star. Thank you!

View File

@ -17,29 +17,25 @@
[![Release Version][7]][8] [![Release Version][7]][8]
[![Build Status][9]][10] [![Build Status][9]][10]
[libubox]: https://git.openwrt.org/?p=project/libubox.git [libev]: http://software.schmorp.de/pkg/libev.html
[uhttpd]: https://git.openwrt.org/?p=project/uhttpd.git [http-parser]: https://github.com/nodejs/http-parser
[ustream-ssl]: https://git.openwrt.org/?p=project/ustream-ssl.git
[openssl]: https://github.com/openssl/openssl [openssl]: https://github.com/openssl/openssl
[mbedtls]: https://github.com/ARMmbed/mbedtls [mbedtls(polarssl)]: https://github.com/ARMmbed/mbedtls
[CyaSSl(wolfssl)]: https://github.com/wolfSSL/wolfssl
[CyaSSl(wolfssl)]: https://github.com/wolfSSL/wolfssl [CyaSSl(wolfssl)]: https://github.com/wolfSSL/wolfssl
一个轻量的全异步的HTTP服务器C库基于[libubox],参考了[uhttpd]。 一个轻量的全异步的HTTP服务器C库基于[libev]和[http-parser]主要用于嵌入式Linux。
`请保持关注以获取最新的项目动态`
# 特性 # 特性
* 轻量、全异步 * 轻量、全异步
* 使用[libubox]作为其事件后端 * 使用[libev]作为其事件后端
* 支持HTTPS - OpenSSL, mbedtls 和 CyaSSl(wolfssl) * 支持HTTPS - OpenSSL, mbedtls 和 CyaSSl(wolfssl)
* 可伸缩 - 你可以非常方便的扩展你的应用程序使之具备HTTP/HTTPS服务 * 可伸缩 - 你可以非常方便的扩展你的应用程序使之具备HTTP/HTTPS服务
* 代码结构简洁通俗易懂,亦适合学习 * 代码结构简洁通俗易懂,亦适合学习
* Lua模板 - 嵌入LUA代码到HTML中就像嵌入PHP到HTML中一样
* Lua绑定
# 依赖 # 依赖
* [libubox] * [libev]
* [ustream-ssl] - 如果你需要支持SSL * [http-parser] - 已经集成到源码里面
* [mbedtls] - 如果你选择mbedtls作为你的SSL后端 * [mbedtls] - 如果你选择mbedtls作为你的SSL后端
* [CyaSSl(wolfssl)] - 如果你选择wolfssl作为你的SSL后端 * [CyaSSl(wolfssl)] - 如果你选择wolfssl作为你的SSL后端
* [openssl] - 如果你选择openssl作为你的SSL后端 * [openssl] - 如果你选择openssl作为你的SSL后端
@ -58,11 +54,11 @@
# 运行示例程序 # 运行示例程序
运行 运行
~/libuhttpd/build$ ./example/helloworld ~/libuhttpd/build$ ./example/example -v
然后使用命令curl或者浏览器进行测试 然后使用命令curl或者浏览器进行测试
$ curl -k 'https://127.0.0.1:8000/hello?name=test' -d '{"name":"libuhttpd"}' -v $ curl -k 'https://127.0.0.1:8000/hello'
# 安装到OpenWRT # 安装到OpenWRT
opkg update opkg update