parent
78ee11782b
commit
02f25bb0fd
10
README.md
10
README.md
|
@ -30,18 +30,18 @@ A very tiny and fast HTTP server library based on [libubox] and referenced from
|
||||||
## Configure
|
## Configure
|
||||||
See which configuration are supported
|
See which configuration are supported
|
||||||
|
|
||||||
~/libuhttp/build$ cmake .. -L
|
~/libuhttpd/build$ cmake .. -L
|
||||||
~/libuhttp/build$ cmake .. -LH
|
~/libuhttpd/build$ cmake .. -LH
|
||||||
|
|
||||||
## Run the Example
|
## Run the Example
|
||||||
First generate the SSL certificate file
|
First generate the SSL certificate file
|
||||||
|
|
||||||
~/libuhttp/build$ cd ..
|
~/libuhttpd/build$ cd ..
|
||||||
~/libuhttp$ ./gen_cert.sh
|
~/libuhttpd$ ./gen_cert.sh
|
||||||
|
|
||||||
Run
|
Run
|
||||||
|
|
||||||
~/libuhttp$ ./build/example/helloworld
|
~/libuhttpd$ ./build/example/helloworld
|
||||||
|
|
||||||
Then use the command curl or browser to test
|
Then use the command curl or browser to test
|
||||||
|
|
||||||
|
|
10
README_ZH.md
10
README_ZH.md
|
@ -30,18 +30,18 @@
|
||||||
## 配置
|
## 配置
|
||||||
查看支持哪些配置选项
|
查看支持哪些配置选项
|
||||||
|
|
||||||
~/libuhttp/build$ cmake .. -L
|
~/libuhttpd/build$ cmake .. -L
|
||||||
~/libuhttp/build$ cmake .. -LH
|
~/libuhttpd/build$ cmake .. -LH
|
||||||
|
|
||||||
## 运行例子
|
## 运行例子
|
||||||
首先生成SSL证书文件
|
首先生成SSL证书文件
|
||||||
|
|
||||||
~/libuhttp/build$ cd ..
|
~/libuhttpd/build$ cd ..
|
||||||
~/libuhttp$ ./gen_cert.sh
|
~/libuhttpd$ ./gen_cert.sh
|
||||||
|
|
||||||
运行
|
运行
|
||||||
|
|
||||||
~/libuhttp$ ./build/example/helloworld
|
~/libuhttpd$ ./build/example/helloworld
|
||||||
|
|
||||||
然后使用命令curl或者浏览器进行测试
|
然后使用命令curl或者浏览器进行测试
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue