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

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!

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值