ChunkedBody.hpp

This File On Github
Ask A Question

API: latest
module: oatpp
#include "oatpp/web/protocol/http/outgoing/ChunkedBody.hpp"

ChunkedBody

Body with Transfer-Encoding: chunked.

namespace oatpp { namespace web { namespace protocol { namespace http { namespace outgoing { 
  class ChunkedBody : public oatpp::base::Countable, public Body, public std::enable_shared_from_this<ChunkedBody> {}
}}}}}

Typedefs

Type Name Summary
oatpp::data::stream::ReadCallback ReadCallback Convenience typedef for oatpp::data::stream::ReadCallback.
oatpp::data::stream::AsyncReadCallback AsyncReadCallback Convenience typedef for oatpp::data::stream::AsyncReadCallback.

Methods

Return Type Name Summary
[none] ChunkedBody Constructor. Must set either ReadCallback or AsyncReadCallback.
[none] ~ChunkedBody virtual destructor.
void declareHeaders Declare Transfer-Encoding: chunked header.
void writeToStream Write body data to stream.
oatpp::async::CoroutineStarter writeToStreamAsync Write body data to stream in asynchronous manner.
data::v_io_size getKnownSize Body size of chunked body is unknown.

ChunkedBody::ReadCallback

Convenience typedef for oatpp::data::stream::ReadCallback.

typedef oatpp::data::stream::ReadCallback ReadCallback

ChunkedBody::AsyncReadCallback

Convenience typedef for oatpp::data::stream::AsyncReadCallback.

typedef oatpp::data::stream::AsyncReadCallback AsyncReadCallback

ChunkedBody::ChunkedBody

Constructor. Must set either ReadCallback or AsyncReadCallback.

ChunkedBody(const std::shared_ptr<ReadCallback>& readCallback,
            const std::shared_ptr<AsyncReadCallback>& asyncReadCallback,
            data::v_io_size chunkBufferSize)

ChunkedBody::~ChunkedBody

virtual destructor.

~ChunkedBody()

ChunkedBody::declareHeaders

Declare Transfer-Encoding: chunked header.

void declareHeaders(Headers& headers) noexcept override

ChunkedBody::writeToStream

Write body data to stream.

void writeToStream(OutputStream* stream) noexcept override

ChunkedBody::writeToStreamAsync

Write body data to stream in asynchronous manner.

oatpp::async::CoroutineStarter writeToStreamAsync(const std::shared_ptr<OutputStream>& stream) override

ChunkedBody::getKnownSize

Body size of chunked body is unknown.

data::v_io_size getKnownSize() override