Forráskód Böngészése

rename http_client to HttpClient

ithewei 2 éve
szülő
commit
06a7b5eb51

+ 1 - 1
Makefile.vars

@@ -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\

+ 1 - 1
cmake/vars.cmake

@@ -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

+ 1 - 1
docs/API.md

@@ -563,7 +563,7 @@
 - dump_json
 - dump_multipart
 
-### http_client.h
+### HttpClient.h
 - http_client_new
 - http_client_del
 - http_client_send

+ 1 - 0
examples/README.md

@@ -5,6 +5,7 @@
 ├── consul/                 consul服务注册与发现
 ├── httpd/                  HTTP服务端
 ├── jsonrpc/                json RPC示例
+├── mqtt/                   MQTT发布订阅示例
 ├── multi-thread/           多线程网络编程示例
 ├── nmap/                   网络扫描工具
 ├── protorpc/               protobuf RPC示例

+ 1 - 1
examples/consul/consul.cpp

@@ -1,6 +1,6 @@
 #include "consul.h"
 
-#include "http_client.h"
+#include "HttpClient.h"
 using namespace hv;
 
 #include "json.hpp"

+ 1 - 1
examples/curl.cpp

@@ -7,7 +7,7 @@
  *         bin/curl -v 127.0.0.1:8080/echo -d 'hello,world!'
  */
 
-#include "http_client.h"
+#include "HttpClient.h"
 #include "hurl.h"
 
 #ifdef _MSC_VER

+ 1 - 1
examples/wget.cpp

@@ -4,7 +4,7 @@
  * @client bin/wget http://127.0.0.1:8080/
  */
 
-#include "http_client.h"
+#include "HttpClient.h"
 #include "htime.h"
 using namespace hv;
 

+ 1 - 1
http/README.md

@@ -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 - 1
http/client/http_client.cpp → http/client/HttpClient.cpp

@@ -1,4 +1,4 @@
-#include "http_client.h"
+#include "HttpClient.h"
 
 #include <mutex>
 

+ 1 - 1
http/client/http_client.h → http/client/HttpClient.h

@@ -8,7 +8,7 @@
 /*
 #include <stdio.h>
 
-#include "http_client.h"
+#include "HttpClient.h"
 
 int main(int argc, char* argv[]) {
     HttpRequest req;

+ 1 - 1
http/client/requests.h

@@ -31,7 +31,7 @@ int main() {
 **/
 
 #include <memory>
-#include "http_client.h"
+#include "HttpClient.h"
 
 namespace requests {