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 {}
}}}

Typedefs

Type Name Summary
std::unordered_map<oatpp::data::share::StringKeyLabelCI_FAST, oatpp::data::share::StringKeyLabel> Headers Typedef for headers map. Headers map key is case-insensitive. std::unordered_map of oatpp::data::share::StringKeyLabelCI_FAST and oatpp::data::share::StringKeyLabel.

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::Headers

Typedef for headers map. Headers map key is case-insensitive. std::unordered_map of oatpp::data::share::StringKeyLabelCI_FAST and oatpp::data::share::StringKeyLabel.

typedef std::unordered_map<oatpp::data::share::StringKeyLabelCI_FAST, oatpp::data::share::StringKeyLabel> Headers

BodyDecoder::decode

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

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

BodyDecoder::decodeAsync

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

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