#include <restincurl.h>


Public Member Functions | |
| OutDataHandler ()=default | |
| OutDataHandler (const T &v) | |
| OutDataHandler (T &&v) | |
Static Public Member Functions | |
| static size_t | read_callback (char *bufptr, size_t size, size_t nitems, void *userdata) |
Public Attributes | |
| T | data_ |
| size_t | sendt_bytes_ = 0 |
Template implementation for output data to curl during a request.
This handler deals with the data sent to the HTTP server during a request (POST, PATCH etc). This implementation will typically use T=std::string and just store the data in a string. For json/XML payloads that's probably all you need. But if you send binary data, you may want to use a container like std::vector or std::deque in stead.
|
default |
Referenced by read_callback().
|
inline |
References data_.
|
inline |
References data_.
|
inlinestatic |
References data_, OutDataHandler(), RESTINCURL_LOG_TRACE, and sendt_bytes_.
Referenced by restincurl::RequestBuilder::SendData().
| T restincurl::OutDataHandler< T >::data_ |
Referenced by OutDataHandler(), OutDataHandler(), and read_callback().
| size_t restincurl::OutDataHandler< T >::sendt_bytes_ = 0 |
Referenced by read_callback().