Explorar el Código

Updated README for cancelation feature

yhirose hace 7 años
padre
commit
48b47ef209
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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",
             len, total,
             (int)((len/total)*100));
+        return true; // return 'false' if you want to cancel the request.
     }
 );
 ```