proxies.h
Go to the documentation of this file.
1 #ifndef CPR_PROXIES_H
2 #define CPR_PROXIES_H
3 
4 #include <initializer_list>
5 #include <map>
6 #include <string>
7 #include <utility>
8 
9 namespace cpr {
10 
11 class Proxies {
12  public:
13  Proxies() {}
14  Proxies(const std::initializer_list<std::pair<const std::string, std::string>>& hosts);
15 
16  bool has(const std::string& protocol) const;
17  const std::string& operator[](const std::string& protocol);
18 
19  private:
20  std::map<std::string, std::string> hosts_;
21 };
22 
23 } // namespace cpr
24 
25 #endif
::std::string string
Definition: gtest-port.h:1129
std::map< std::string, std::string > hosts_
Definition: proxies.h:20
bool has(const std::string &protocol) const
Definition: proxies.cpp:13
const std::string & operator[](const std::string &protocol)
Definition: proxies.cpp:17
Definition: auth.cpp:3


rc_tagdetect_client
Author(s): Monika Florek-Jasinska , Raphael Schaller
autogenerated on Sat Feb 13 2021 03:42:16