Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

Isis Developer Reference
restincurl::InDataHandler< T > Struct Template Reference

#include <restincurl.h>

Inheritance diagram for restincurl::InDataHandler< T >:
Inheritance graph
Collaboration diagram for restincurl::InDataHandler< T >:
Collaboration graph

Public Member Functions

 InDataHandler (T &data)
 

Static Public Member Functions

static size_t write_callback (char *ptr, size_t size, size_t nitems, void *userdata)
 

Public Attributes

T & data_
 

Detailed Description

template<typename T>
struct restincurl::InDataHandler< T >

Template implementation for input data to curl during a request.

This handler deals with the data received from the HTTP server during a request. This implementation will typically use T=std::string and just store the received data in a string. For json/XML payloads that's probably all you need. But if you receive binary data, you may want to use a container like std::vector or std::deque in stead.

Constructor & Destructor Documentation

◆ InDataHandler()

template<typename T>
restincurl::InDataHandler< T >::InDataHandler ( T & data)
inline

References data_, and RESTINCURL_LOG_TRACE.

Referenced by write_callback().

Member Function Documentation

◆ write_callback()

template<typename T>
static size_t restincurl::InDataHandler< T >::write_callback ( char * ptr,
size_t size,
size_t nitems,
void * userdata )
inlinestatic

Member Data Documentation

◆ data_

template<typename T>
T& restincurl::InDataHandler< T >::data_

Referenced by InDataHandler().


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