Hi, In the file lib/atscppapi/examples/async_http_fetch/AsyncHttpFetch.cc, there is this code:
------------------------------------------------------------------------------------------------------- // we'll add some custom headers for this request AsyncHttpFetch2 *provider2 = new AsyncHttpFetch2("http://127.0.0.1/"); Headers &request_headers = provider2->getRequestHeaders(); request_headers.set("Header1", "Value1"); request_headers.set("Header2", "Value2"); Async::execute<AsyncHttpFetch2>(this, provider2, getMutex()); --------------------------------------------------------------------------------------------------------- what is the lifetime of 'provider2'? I am assuming plugin owner is responsible for freeing this object. If so, when can I destroy this object? Is the handle return in handleAnyAsyncComplete the same as 'provider2'? thanks. Dk.