Function SetWriteFunction

Synopsis

#include <include/restclient-cpp/connection.h>

void SetWriteFunction(WriteCallback write_callback)

Description

set CURLOPT_WRITEFUNCTION

set callback for writing received data. Last parameter to callback (userdata) points to a RestClient::Response. For details, see https://curl.haxx.se/libcurl/c/CURLOPT_WRITEFUNCTION.html

Parameters

write_callback - - callback to handle received data

Mentioned in

Source

Lines 345-349 in source/connection.cc. Line 209 in include/restclient-cpp/connection.h.

void
RestClient::Connection::SetWriteFunction(RestClient::WriteCallback
writeCallback) {
  this->writeCallback = writeCallback;
}





Add Discussion as Guest

Log in