1 #ifndef SG_HTTP_CLIENT_HXX
2 #define SG_HTTP_CLIENT_HXX
6 #include <simgear/io/HTTPRequest.hxx>
23 void makeRequest(const Request_ptr& r);
25 void setUserAgent(const std::string& ua);
26 void setProxy(const std::string& proxy, int port, const std::string& auth = "");
28 const std::string& userAgent() const
29 { return _userAgent; }
31 const std::string& proxyHost() const
34 const std::string& proxyAuth() const
35 { return _proxyAuth; }
37 void requestFinished(Connection* con);
39 friend class Connection;
42 std::string _userAgent;
45 std::string _proxyAuth;
47 // connections by host
48 typedef std::map<std::string, Connection*> ConnectionDict;
49 ConnectionDict _connections;
52 } // of namespace HTTP
54 } // of namespace simgear
56 #endif // of SG_HTTP_CLIENT_HXX