1 #ifndef SG_HTTP_CLIENT_HXX
2 #define SG_HTTP_CLIENT_HXX
6 #include <simgear/io/HTTPRequest.hxx>
21 void makeRequest(const Request_ptr& r);
23 void setUserAgent(const std::string& ua);
24 void setProxy(const std::string& proxy, const std::string& auth = "");
26 const std::string& userAgent() const
27 { return _userAgent; }
29 const std::string& proxyHost() const
32 const std::string& proxyAuth() const
33 { return _proxyAuth; }
35 void requestFinished(Connection* con);
37 friend class Connection;
39 std::string _userAgent;
41 std::string _proxyAuth;
43 // connections by host
44 std::map<std::string, Connection*> _connections;
47 } // of namespace HTTP
49 } // of namespace simgear
51 #endif // of SG_HTTP_CLIENT_HXX