CurlBodyReader.hpp

This File On Github
Ask A Question

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

CurlBodyReader

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

namespace oatpp { namespace curl { namespace io { 
  class CurlBodyReader {}
}}}

Methods

Return Type Name Summary
[none] CurlBodyReader Constructor.
data::v_io_size read Read body data.
data::v_io_size readNonBlocking Non blocking attempt to Read body data.
data::v_io_size getAvailableBytesCount Available amount of bytes currently buffered.

CurlBodyReader::CurlBodyReader

Constructor.

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

CurlBodyReader::read

Read body data.

  • @param data - buffer to read data to.
  • @param count - buffer size.
  • @return - actual amount of bytes read. oatpp::data::v_io_size.

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

CurlBodyReader::readNonBlocking

Non blocking attempt to Read body data.

  • @param data - buffer to read data to.
  • @param count - buffer size.
  • @return - actual amount of bytes read. oatpp::data::v_io_size.

data::v_io_size readNonBlocking(void *data, data::v_io_size count)

CurlBodyReader::getAvailableBytesCount

Available amount of bytes currently buffered.

data::v_io_size getAvailableBytesCount()