Body.hpp

This File On Github
Ask A Question

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

Body

Abstract http outgoing body. You may extend this class in order to implement custom body transferring functionality.

namespace oatpp { namespace web { namespace protocol { namespace http { namespace outgoing { 
  class Body {}
}}}}}

Methods

Return Type Name Summary
[none] ~Body Virtual destructor.
void declareHeaders Declare headers describing body.
void writeToStream write content to stream
oatpp::async::CoroutineStarter writeToStreamAsync Same as Body::writeToStream() but async.

Body::~Body

Virtual destructor.

virtual ~Body() = default

Body::declareHeaders

Declare headers describing body.

virtual void declareHeaders(Headers& headers) noexcept = 0

Body::writeToStream

write content to stream

virtual void writeToStream(OutputStream* stream) noexcept = 0

Body::writeToStreamAsync

Same as Body::writeToStream() but async.

virtual oatpp::async::CoroutineStarter writeToStreamAsync(const std::shared_ptr<OutputStream>& stream) = 0