linux http库,libuhttp 一个用于嵌入式Linux非常小巧,快速的HTTP库

linux http库,libuhttp 一个用于嵌入式Linux非常小巧,快速的HTTP库libuhttpd(中文)ALightweightandfullyasynchronousHTTPserverlibrarybasedonlibevandhttp-parserforEmbeddedLinux.Feat

libuhttpd(中文)

68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d706c617374696368747470733a2f2f696d672e736869656c64732e696f2f62616467652f5052732d77656c636f6d652d627269676874677265656e2e7376673f7374796c653d706c617374696368747470733a2f2f696d672e736869656c64732e696f2f62616467652f4973737565732d77656c636f6d652d627269676874677265656e2e7376673f7374796c653d706c617374696368747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656c656173652d332e312e342d626c75652e7376673f7374796c653d706c617374696368747470733a2f2f7472617669732d63692e6f72672f7a68616f6a683332392f6c69627568747470642e7376673f6272616e63683d6d6173746572

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

(0)
编程小号编程小号

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注