update README and little style fixes

This commit is contained in:
2019-07-08 05:22:39 +07:00
parent fb124a2208
commit f13a10b30d
3 changed files with 20 additions and 19 deletions

View File

@@ -30,9 +30,9 @@
- Custom headers
- Asynchronous requests
- Different types of timeouts
- Custom completion callbacks
- PUT, GET, HEAD, POST methods
- Completion and progress callbacks
- Custom uploading and downloading streams
- PUT, GET, HEAD, POST, PATCH, DELETE, OPTIONS methods
## Installation
@@ -244,7 +244,7 @@ netex::promise<net::content_t> download(std::string url) {
reject(net::exception("network error"));
return;
}
net::response response = request.get();
net::response response = request.take();
if ( response.is_http_error() ) {
reject(net::exception("server error"));
return;