restc-cpp icon indicating copy to clipboard operation
restc-cpp copied to clipboard

Notification when all requests are completed.

Open Piero512 opened this issue 6 years ago • 1 comments

Hey, wanted to write up feedback and I had a little problem with the library implementation. On my project, the library is used with a wrapper, that provides different storage backends, and in one of these backends it has to POST data to an API. I was wondering if there's a way to wait until all requests have completed but without closing the rest-client. A workaround I think for it would be to handle the rest client object and have it close, then re-initialized to be ready for the next POST request on the wrapper, but it's ugly.

This is a great library, it really makes HTTP on C++ easy, and I haven't had any other issues so far.

Piero512 avatar Feb 25 '19 22:02 Piero512

Interesting suggestion. I'll see what I can do :)

jgaa avatar Feb 27 '19 07:02 jgaa