소스 검색

Updated README for cancelation feature

yhirose 7 년 전
부모
커밋
48b47ef209
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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.
     }
 );
 ```