# 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:
|
# ProviderCollection::add
Add encoder to collection.
- @param provider
void add(const std::shared_ptr<EncoderProvider>& provider)
# ProviderCollection::get
- Get encoder by encoding name.
- @param encoding - encoding name.
- @return
std::shared_ptr<EncoderProvider> get(const data::share::StringKeyLabelCI& encoding) const
- 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