libuhttpd(中文)
A Lightweight and fully asynchronous HTTP server library based on libev and http-parser for Embedded Linux.
Features
Lightweight and fully asynchronous
Use libev as its event backend
Support HTTPS – OpenSSL, mbedtls and CyaSSl(wolfssl)
Support plugin
Flexible – you can easily extend your application to have HTTP/HTTPS services
Code structure is concise and understandable, also suitable for learning
Dependencies
http-parser – A parser for HTTP messages written in C
mbedtls – If you choose mbedtls as your SSL backend
wolfssl – If you choose wolfssl as your SSL backend
openssl – If you choose openssl as your SSL backend
Configure
See which configuration are supported
~/libuhttpd/$ mkdir build && cd build
~/libuhttpd/build$ cmake .. -L
~/libuhttpd/build$ cmake .. -LH
Build and install
~/libuhttpd/build$ make && sudo make install
Run Example
Run
~/libuhttpd/build$ ./example/example
Then use the command curl or browser to test
$ curl ‘https://127.0.0.1:8000’ -v
Install on OpenWrt
opkg update
opkg list | grep libuhttpd
opkg install libuhttpd-nossl
If the install command fails, you can compile it yourself.
Contributing
If you would like to help making libuhttpd better, see the CONTRIBUTING.md file.
If the project is helpful to you, please do not hesitate to star. Thank you!
今天的文章linux http库,libuhttp 一个用于嵌入式Linux非常小巧,快速的HTTP库分享到此就结束了,感谢您的阅读。
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/87844.html