@@ -32,6 +32,9 @@ but simpler apis and richer protocols.
- curl
## Getting Started
+```
+./getting_started.sh
### HTTP
#### http server
@@ -80,7 +83,6 @@ int main(int argc, char* argv[]) {
```
```shell
-# see getting_started.sh
git clone https://github.com/ithewei/libhv.git
cd libhv
make httpd curl
@@ -1,6 +1,7 @@
#!/bin/bash
if [ ! -x bin/httpd -o ! -x bin/curl ]; then
+ make clean
fi
@@ -53,3 +54,7 @@ bin/curl -v localhost:8080/v1/api/test -F 'bool=1 int=123 float=3.14 string=hell
read -n1
bin/curl -v -X DELETE localhost:8080/v1/api/group/test/user/123
+# see logs
+read -n1
+tail -n 100 logs/httpd*.log
+
@@ -31,6 +31,9 @@
## 入门
@@ -79,7 +82,6 @@ int main(int argc, char* argv[]) {