ProviderCollection.hpp

This File On Github
Ask A Question

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

ProviderCollection

Collection of oatpp::web::protocol::http::encoding::EncoderProvider.

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

Methods

Return Type Name Summary
void add Add encoder to collection.
std::shared_ptr<EncoderProvider> get Multiple implementations:
  1. Get encoder by encoding name.
  2. Select available provider for set of encodings.

ProviderCollection::add

Add encoder to collection.

  • @param provider

void add(const std::shared_ptr<EncoderProvider>& provider)

ProviderCollection::get

  1. Get encoder by encoding name.
    • @param encoding - encoding name.
    • @return
    std::shared_ptr<EncoderProvider> get(const data::share::StringKeyLabelCI& encoding) const
    
  2. Select available provider for set of encodings.
    • @param encodings - set of desired encodings
    • @return
    std::shared_ptr<EncoderProvider> get(const std::unordered_set<data::share::StringKeyLabelCI>& encodings) const