# SimpleBodyDecoder.hpp

This File On Github
Ask A Question

API: latest
module: oatpp
#include "oatpp/web/protocol/http/incoming/SimpleBodyDecoder.hpp"

# SimpleBodyDecoder

Default implementation of oatpp::web::protocol::http::incoming::BodyDecoder.

namespace oatpp { namespace web { namespace protocol { namespace http { namespace incoming { 
  class SimpleBodyDecoder : public BodyDecoder {}
}}}}}

# Methods

Return Type Name Summary
[none] SimpleBodyDecoder Constructor.
void decode Decode bodyStream and write decoded data to toStream.
oatpp::async::CoroutineStarter decodeAsync Same as SimpleBodyDecoder::decode() but Async.

# SimpleBodyDecoder::SimpleBodyDecoder

Constructor.

  • @param decoders - collection content decoders.

SimpleBodyDecoder(const std::shared_ptr<encoding::ProviderCollection>& contentDecoders = nullptr)

# SimpleBodyDecoder::decode

Decode bodyStream and write decoded data to toStream.

void decode(const Headers& headers,
            data::stream::InputStream* bodyStream,
            data::stream::WriteCallback* writeCallback,
            data::stream::IOStream* connection) const override

# SimpleBodyDecoder::decodeAsync

Same as SimpleBodyDecoder::decode() but Async.

oatpp::async::CoroutineStarter decodeAsync(const Headers& headers,
                                           const std::shared_ptr<data::stream::InputStream>& bodyStream,
                                           const std::shared_ptr<data::stream::WriteCallback>& writeCallback,
                                           const std::shared_ptr<data::stream::IOStream>& connection) const override