BodyInputStream.hpp

This File On Github
Ask A Question

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

BodyInputStream

Wrapper over oatpp::curl::io::CurlBodyReader providing oatpp::data::stream::InputStream interface.

namespace oatpp { namespace curl { namespace io { 
  class BodyInputStream : public oatpp::data::stream::InputStream {}
}}}

Methods

Return Type Name Summary
[none] BodyInputStream Constructor.
data::v_io_size read Read data from stream. Implementation of oatpp::data::stream::InputStream::read() method.

BodyInputStream::BodyInputStream

Constructor.

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

BodyInputStream(const std::shared_ptr<CurlBodyReader>, bool nonBlocking = false)

BodyInputStream::read

Read data from stream. Implementation of oatpp::data::stream::InputStream::read() method.

data::v_io_size read(void *data, data::v_io_size count) override