hewei.it 4 years ago
parent
commit
f085d888f0
5 changed files with 7 additions and 6 deletions
  1. 2 2
      .clang-format
  2. 2 2
      docs/API.md
  3. 1 1
      examples/curl.cpp
  4. 1 1
      examples/http_client_test.cpp
  5. 1 0
      utils/README.md

+ 2 - 2
.clang-format

@@ -20,7 +20,7 @@ AlwaysBreakBeforeMultilineStrings: false
 AlwaysBreakTemplateDeclarations: false
 BinPackArguments: true
 BinPackParameters: true
-BraceWrapping:   
+BraceWrapping:
   AfterClass:      false
   AfterControlStatement: false
   AfterEnum:       false
@@ -48,7 +48,7 @@ DerivePointerAlignment: true
 DisableFormat:   false
 ExperimentalAutoDetectBinPacking: false
 ForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
-IncludeCategories: 
+IncludeCategories:
   - Regex:           '.*'
     Priority:        1
   - Regex:           '^".*/'

+ 2 - 2
docs/API.md

@@ -462,6 +462,7 @@
 - http_client_new
 - http_client_del
 - http_client_send
+- http_client_send_async
 - http_client_strerror
 - http_client_set_timeout
 - http_client_set_header
@@ -474,8 +475,7 @@
 - http_server_stop
 
 ## other
-- HVar
-- HObject
 - HThread
 - HThreadPool
 - HObjectPool
+- ThreadLocalStorage

+ 1 - 1
examples/curl.cpp

@@ -195,7 +195,7 @@ int main(int argc, char* argv[]) {
                 ++p;
             }
             if (key_len && value_len) {
-                printf("key=%.*s value=%.*s\n", key_len, key, value_len, value);
+                // printf("key=%.*s value=%.*s\n", key_len, key, value_len, value);
                 FormData data;
                 if (*value == '@') {
                     data.filename = std::string(value+1, value_len-1);

+ 1 - 1
examples/http_client_test.cpp

@@ -4,7 +4,7 @@
 
 static void test_http_async_client(int* finished) {
     printf("test_http_async_client request thread tid=%ld\n", hv_gettid());
-    HttpRequestPtr req = HttpRequestPtr(new HttpRequest);
+    HttpRequestPtr req(new HttpRequest);
     req->method = HTTP_POST;
     req->url = "127.0.0.1:8080/echo";
     req->headers["Connection"] = "keep-alive";

+ 1 - 0
utils/README.md

@@ -8,6 +8,7 @@
 ├── iniparser.h     INI解析
 ├── json.hpp        JSON解析
 ├── md5.h           MD5数字摘要
+├── sha1.h          SHA1安全散列算法
 └── singleton.h     单例模式宏
 
 ```