|
QtRestClient
3.0.0
A library for generic JSON-based REST-APIs, with a mechanism to map JSON to Qt objects
|
A helper class to be used with QtCoroutines to await a rest reply. More...
#include <restreplyawaitable.h>
Public Types | |
| using | type = RestReply::DataType |
| Type returned when awaiting this class. | |
| using | exceptionType = AwaitedException |
| Exception type thrown in case of an error. | |
Public Member Functions | |
| RestReplyAwaitable (RestReply *reply) | |
| Construction form a rest reply. | |
| RestReplyAwaitable (RestReplyAwaitable &&other) noexcept | |
| Move constructor. | |
| RestReplyAwaitable & | operator= (RestReplyAwaitable &&other) noexcept |
| Move assignment operator. | |
| void | prepare (const std::function< void()> &resume) |
| Prepare the awaitable for resumption. | |
| type | result () |
| Extract the result from the awaitable. | |
A helper class to be used with QtCoroutines to await a rest reply.
Definition at line 72 of file restreplyawaitable.h.
1.8.16