BodyDecoder.hpp

This File On Github
Ask A Question

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

BodyDecoder

Custom BodyDecoder for oatpp::curl::RequestExecutor. Extends oatpp::web::protocol::http::incoming::BodyDecoder.

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

Methods

Return Type Name Summary
void decode Just transfer everything we have in bodyStream to toStream as-is
oatpp::async::CoroutineStarter decodeAsync Just transfer everything we have in bodyStream to toStream as-is

BodyDecoder::decode

Just transfer everything we have in bodyStream to toStream as-is Curl already did all decoding.

void decode(const oatpp::web::protocol::http::Headers& headers,
            const std::shared_ptr<oatpp::data::stream::InputStream>& bodyStream,
            const std::shared_ptr<oatpp::data::stream::OutputStream>& toStream) const override

BodyDecoder::decodeAsync

Just transfer everything we have in bodyStream to toStream as-is Curl already did all decoding.

oatpp::async::CoroutineStarter decodeAsync(const oatpp::web::protocol::http::Headers& headers,
                                           const std::shared_ptr<oatpp::data::stream::InputStream>& bodyStream,
                                           const std::shared_ptr<oatpp::data::stream::OutputStream>& toStream) const override