Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
SC::HttpClientRequestBodyProvider Struct Referenceabstract

Pull-based provider for streamed request bodies. More...

#include <HttpClient.h>

Inheritance diagram for SC::HttpClientRequestBodyProvider:
SC::HttpClientAsyncT< T_AsyncEventLoop, T_AsyncStreams >

Public Member Functions

virtual Result pullRequestBody (Span< char > dest, size_t &bytesWritten, bool &endReached)=0
 Writes the next request body chunk in dest.
 

Detailed Description

Pull-based provider for streamed request bodies.

Member Function Documentation

◆ pullRequestBody()

virtual Result SC::HttpClientRequestBodyProvider::pullRequestBody ( Span< char > dest,
size_t & bytesWritten,
bool & endReached )
pure virtual

Writes the next request body chunk in dest.

Parameters
destDestination span to fill with request body bytes
bytesWrittenNumber of bytes written in dest
endReachedSet to true once the provider has no more bytes to return
Returns
Result(true) on success, otherwise the error to propagate to the request

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