@@ -79,7 +79,7 @@ HTTP_HEADERS = http/httpdef.h\
HTTP2_HEADERS = http/http2def.h\
http/grpcdef.h\
-HTTP_CLIENT_HEADERS = http/client/http_client.h\
+HTTP_CLIENT_HEADERS = http/client/HttpClient.h\
http/client/requests.h\
http/client/axios.h\
http/client/AsyncHttpClient.h\
@@ -90,7 +90,7 @@ set(HTTP2_HEADERS
)
set(HTTP_CLIENT_HEADERS
- http/client/http_client.h
+ http/client/HttpClient.h
http/client/requests.h
http/client/axios.h
http/client/AsyncHttpClient.h
@@ -563,7 +563,7 @@
- dump_json
- dump_multipart
-### http_client.h
+### HttpClient.h
- http_client_new
- http_client_del
- http_client_send
@@ -5,6 +5,7 @@
├── consul/ consul服务注册与发现
├── httpd/ HTTP服务端
├── jsonrpc/ json RPC示例
+├── mqtt/ MQTT发布订阅示例
├── multi-thread/ 多线程网络编程示例
├── nmap/ 网络扫描工具
├── protorpc/ protobuf RPC示例
@@ -1,6 +1,6 @@
#include "consul.h"
-#include "http_client.h"
+#include "HttpClient.h"
using namespace hv;
#include "json.hpp"
@@ -7,7 +7,7 @@
* bin/curl -v 127.0.0.1:8080/echo -d 'hello,world!'
*/
#include "hurl.h"
#ifdef _MSC_VER
@@ -4,7 +4,7 @@
* @client bin/wget http://127.0.0.1:8080/
#include "htime.h"
@@ -3,7 +3,7 @@
```
.
├── client
-│ ├── http_client.h http客户端对外头文件
+│ ├── HttpClient.h http客户端对外头文件
│ ├── requests.h 模拟python requests api
│ └── axios.h 模拟nodejs axios api
├── httpdef.h http定义
@@ -1,4 +1,4 @@
#include <mutex>
@@ -8,7 +8,7 @@
/*
#include <stdio.h>
int main(int argc, char* argv[]) {
HttpRequest req;
@@ -31,7 +31,7 @@ int main() {
**/
#include <memory>
namespace requests {