cpp Rest API master
C++ library for REST API access with Qt, Curl and cpp-httplib backends
 
Loading...
Searching...
No Matches
coroutine.hpp File Reference
#include <coroutine>
#include <exception>
#include <expected>
#include <optional>
#include <string>
#include "iconnection.hpp"

Go to the source code of this file.

Classes

struct  cpp_restapi::detail::FetchAwaitable
 Awaitable wrapping IConnection::fetch(request, onSuccess, onError) More...
 
struct  cpp_restapi::detail::PaginatedFetchAwaitable
 Awaitable wrapping paginated IConnection::fetch. More...
 
struct  cpp_restapi::Detached
 Fire-and-forget coroutine wrapper. More...
 
struct  cpp_restapi::Detached::promise_type
 

Namespaces

namespace  cpp_restapi
 
namespace  cpp_restapi::detail
 

Functions

detail::FetchAwaitable cpp_restapi::coFetch (IConnection &connection, const std::string &request)
 Asynchronously fetch a single resource.
 
detail::PaginatedFetchAwaitable cpp_restapi::coFetch (IConnection &connection, const std::string &request, IPaginationStrategy &strategy)
 Asynchronously fetch with pagination.