QtRestClient  3.0.0
A library for generic JSON-based REST-APIs, with a mechanism to map JSON to Qt objects
Public Types | Public Member Functions | List of all members
QtRestClient::RestReplyAwaitable Class Reference

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.
 
RestReplyAwaitableoperator= (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.
 

Detailed Description

A helper class to be used with QtCoroutines to await a rest reply.

Definition at line 72 of file restreplyawaitable.h.


The documentation for this class was generated from the following file: