One in-flight HTTP request/response operation. More...
#include <HttpClient.h>
Public Member Functions | |
| HttpClientOperation (const HttpClientOperation &)=delete | |
| HttpClientOperation (HttpClientOperation &&)=delete | |
| HttpClientOperation & | operator= (const HttpClientOperation &)=delete |
| HttpClientOperation & | operator= (HttpClientOperation &&)=delete |
| Result | init (HttpClient &client, const HttpClientOperationMemory &memory) |
| Result | close () |
| Result | cancel () |
| Result | start (const HttpClientRequest &request, HttpClientResponse &response, HttpClientOperationListener *listener=nullptr, HttpClientRequestBodyProvider *bodyProvider=nullptr) |
| Starts a new request on this operation. | |
| Result | poll (uint32_t timeoutMilliseconds=0) |
| Processes queued backend events and optionally waits for more work. | |
| void | setNotifier (HttpClientOperationNotifier *notifierValue) |
| Registers an optional notifier used by adapters such as HttpClientAsyncT. | |
| bool | isInitialized () const |
| bool | isRequestInFlight () const |
Friends | |
| struct | Internal |
| struct | HttpClientAppleCallbacks |
| struct | HttpClientLinuxCallbacks |
| struct | HttpClientWindowsCallbacks |
One in-flight HTTP request/response operation.
Processes queued backend events and optionally waits for more work.
| timeoutMilliseconds | Maximum time to wait for new events, 0 for non-blocking polling |
Result(true) on success, otherwise the processing error
|
inline |
Registers an optional notifier used by adapters such as HttpClientAsyncT.
| notifierValue | Notifier receiving wake-up notifications, or nullptr |
|
nodiscard |
Starts a new request on this operation.
| request | Request metadata |
| response | Parsed response metadata storage updated as the request progresses |
| listener | Optional poll-driven response listener |
| bodyProvider | Optional request body provider for streamed uploads |
Result(true) on success, otherwise the start error