EncoderProvider.hpp

This File On Github
Ask A Question

API: latest
module: oatpp
#include "oatpp/web/protocol/http/encoding/EncoderProvider.hpp"

EncoderProvider

Provider of encoding or decoding oatpp::data::buffer::Processor.

namespace oatpp { namespace web { namespace protocol { namespace http { namespace encoding { 
  class EncoderProvider {}
}}}}}

Methods

Return Type Name Summary
[none] ~EncoderProvider Default virtual destructor.
oatpp::String getEncodingName Get name of the encoding. This name is used in HTTP headers.
std::shared_ptr<data::buffer::Processor> getProcessor Get oatpp::data::buffer::Processor for decoding/encoding.

EncoderProvider::~EncoderProvider

Default virtual destructor.

virtual ~EncoderProvider() = default

EncoderProvider::getEncodingName

Get name of the encoding. This name is used in HTTP headers.

  • @return - name of the encoding. Ex.: "gzip" or "deflate" or "chunked".

virtual oatpp::String getEncodingName() = 0

EncoderProvider::getProcessor

Get oatpp::data::buffer::Processor for decoding/encoding.

virtual std::shared_ptr<data::buffer::Processor> getProcessor() = 0