#include <restincurl.h>


Public Member Functions | |
| 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.
Definition at line 432 of file restincurl.h.
|
inline |
Definition at line 434 of file restincurl.h.
|
inline |
Definition at line 435 of file restincurl.h.
|
inlinestatic |
Definition at line 437 of file restincurl.h.
| T restincurl::OutDataHandler< T >::data_ |
Definition at line 451 of file restincurl.h.
| size_t restincurl::OutDataHandler< T >::sendt_bytes_ = 0 |
Definition at line 452 of file restincurl.h.