Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

New Post: .then() / .wait() on task tree?

$
0
0
Hi DesktopMan,

Without seeing your code it is a little difficult to describe, but you always can choose to return the last task in your processing chain. I.e. the task that executes after calling extract_json(). Just to make sure everything is clear the task returned from http_client::request(...) is completed once the HTTP headers have arrived, the response body may or may not have completely arrived yet. If you want to wait for the entire HTTP response body to arrive as well you need to wait until the task returned from either http_response::content_ready() or one of the http_response::extract_* methods is completed.

Steve

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>