Pull-based provider for streamed request bodies. More...
#include <HttpClient.h>
Public Member Functions | |
| virtual Result | pullRequestBody (Span< char > dest, size_t &bytesWritten, bool &endReached)=0 |
| Writes the next request body chunk in dest. | |
Pull-based provider for streamed request bodies.
|
pure virtual |
Writes the next request body chunk in dest.
| dest | Destination span to fill with request body bytes |
| bytesWritten | Number of bytes written in dest |
| endReached | Set to true once the provider has no more bytes to return |
Result(true) on success, otherwise the error to propagate to the request