Browse Source

Updated README for cancelation feature

yhirose 7 years ago
parent
commit
48b47ef209
1 changed files with 1 additions and 0 deletions
  1. 1 0
      README.md

+ 1 - 0
README.md

@@ -166,6 +166,7 @@ std::shared_ptr<httplib::Response> res =
         printf("%lld / %lld bytes => %d%% complete\n",
         printf("%lld / %lld bytes => %d%% complete\n",
             len, total,
             len, total,
             (int)((len/total)*100));
             (int)((len/total)*100));
+        return true; // return 'false' if you want to cancel the request.
     }
     }
 );
 );
 ```
 ```