proxies.cpp
Go to the documentation of this file.
00001 #include "cpr/proxies.h"
00002 
00003 #include <initializer_list>
00004 #include <map>
00005 #include <string>
00006 #include <utility>
00007 
00008 namespace cpr {
00009 
00010 Proxies::Proxies(const std::initializer_list<std::pair<const std::string, std::string>>& hosts)
00011         : hosts_{hosts} {}
00012 
00013 bool Proxies::has(const std::string& protocol) const {
00014     return hosts_.count(protocol) > 0;
00015 }
00016 
00017 const std::string& Proxies::operator[](const std::string& protocol) {
00018     return hosts_[protocol];
00019 }
00020 
00021 } // namespace cpr


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:06