CurlBodyWriter.hpp

This File On Github
Ask A Question

API: latest
module: oatpp-curl
#include "oatpp-curl/io/CurlBodyWriter.hpp"

CurlBodyWriter

This class is wrapper over oatpp::curl::io::CurlHandles to provide output-stream like interface

namespace oatpp { namespace curl { namespace io { 
  class CurlBodyWriter {}
}}}

Methods

Return Type Name Summary
[none] CurlBodyWriter Constructor.
data::v_io_size write Write data to body.
data::v_io_size writeNonBlocking Non blocking attempt to write data to body.

CurlBodyWriter::CurlBodyWriter

Constructor.

CurlBodyWriter(const std::shared_ptr<CurlHandles>& curlHandles)

CurlBodyWriter::write

Write data to body.

  • @param data - pointer to data to write.
  • @param count - data size.
  • @return - actual amount of bytes written. oatpp::data::v_io_size.

data::v_io_size write(const void *data, data::v_io_size count)

CurlBodyWriter::writeNonBlocking

Non blocking attempt to write data to body.

  • @param data - pointer to data to write.
  • @param count - data size.
  • @return - actual amount of bytes written. oatpp::data::v_io_size.

data::v_io_size writeNonBlocking(const void *data, data::v_io_size count)