BodyOutputStream.hpp

This File On Github
Ask A Question

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

BodyOutputStream

Wrapper over oatpp::curl::io::CurlBodyWriter providing oatpp::data::stream::OutputStream interface.

namespace oatpp { namespace curl { namespace io { 
  class BodyOutputStream : public oatpp::data::stream::OutputStream {}
}}}

Methods

Return Type Name Summary
[none] BodyOutputStream Constructor.
data::v_io_size write Write data to stream. Implementation of oatpp::data::stream::OutputStream::write() method.

BodyOutputStream::BodyOutputStream

Constructor.

  • @param nonBlocking - true for non-blocking writes.

BodyOutputStream(const std::shared_ptr<CurlBodyWriter>, bool nonBlocking = false)

BodyOutputStream::write

Write data to stream. Implementation of oatpp::data::stream::OutputStream::write() method.

  • @param data - 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) override