cpp Rest API master
C++ library for REST API access with Qt, Curl and cpp-httplib backends
 
Loading...
Searching...
No Matches
cpp_restapi::detail::PaginatedFetchAwaitable Struct Reference

Awaitable wrapping paginated IConnection::fetch. More...

#include <coroutine.hpp>

Public Member Functions

bool await_ready () const noexcept
 
void await_suspend (std::coroutine_handle<> h)
 
std::expected< std::string, HttpErrorawait_resume ()
 

Public Attributes

IConnectionconnection
 
std::string request
 
IPaginationStrategystrategy
 
std::optional< std::expected< std::string, HttpError > > result
 
CancellationToken cancel
 

Detailed Description

Awaitable wrapping paginated IConnection::fetch.

Member Function Documentation

◆ await_ready()

bool cpp_restapi::detail::PaginatedFetchAwaitable::await_ready ( ) const
inlinenoexcept

◆ await_resume()

std::expected< std::string, HttpError > cpp_restapi::detail::PaginatedFetchAwaitable::await_resume ( )
inline

◆ await_suspend()

void cpp_restapi::detail::PaginatedFetchAwaitable::await_suspend ( std::coroutine_handle<> h)
inline

Member Data Documentation

◆ cancel

CancellationToken cpp_restapi::detail::PaginatedFetchAwaitable::cancel

◆ connection

IConnection& cpp_restapi::detail::PaginatedFetchAwaitable::connection

◆ request

std::string cpp_restapi::detail::PaginatedFetchAwaitable::request

◆ result

std::optional<std::expected<std::string, HttpError> > cpp_restapi::detail::PaginatedFetchAwaitable::result

◆ strategy

IPaginationStrategy& cpp_restapi::detail::PaginatedFetchAwaitable::strategy

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