Update README

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
main
Jianhui Zhao 2017-11-09 13:29:10 +08:00
parent 38f1f37467
commit fe2a2f46c9
1 changed files with 17 additions and 0 deletions

17
README.md 100644 → 100755
View File

@ -4,3 +4,20 @@
A very tiny and fast HTTP library based on [libev](http://software.schmorp.de/pkg/libev.html) and A very tiny and fast HTTP library based on [libev](http://software.schmorp.de/pkg/libev.html) and
[http-parser](https://github.com/nodejs/http-parser) for Embedded Linux. [http-parser](https://github.com/nodejs/http-parser) for Embedded Linux.
# How To Compile on Ubuntu
## Install dependency Tools and Libraries
sudo apt install cmake libev-dev libhttp-parser-dev
## Compile libuhttp
git clone https://github.com/zhaojh329/libuhttp.git
cd libuhttp
mkdir build
cd build
cmake ../
make && sudo make install
## Test
$ ./example/helloworld
Then use the command curl or browser to access http://127.0.0.1:8000/test