Reusable HTTP backend/session owner. More...
#include <HttpClient.h>
Public Member Functions | |
| HttpClient (const HttpClient &)=delete | |
| HttpClient (HttpClient &&)=delete | |
| HttpClient & | operator= (const HttpClient &)=delete |
| HttpClient & | operator= (HttpClient &&)=delete |
| Result | init () |
| Result | close () |
| bool | isInitialized () const |
Static Public Member Functions | |
| static Result | executeBlocking (const HttpClientRequest &request, HttpClientResponse &response, Span< char > bodyBuffer, size_t &bodyLength, const HttpClientOperationMemory &memory) |
| Convenience helper executing a request synchronously on top of HttpClientOperation::poll. | |
Friends | |
| struct | HttpClientOperation |
| struct | Internal |
Reusable HTTP backend/session owner.
|
staticnodiscard |
Convenience helper executing a request synchronously on top of HttpClientOperation::poll.
| request | Request metadata |
| response | Parsed response metadata |
| bodyBuffer | Destination for the response body |
| bodyLength | Number of body bytes copied into bodyBuffer |
| memory | Caller-owned operation memory used for the blocking request |
Result(true) on success, otherwise the request error