Mercurial > hg > orthanc
diff Core/HttpClient.h @ 1987:ce90d109bb64
new plugin functions: OrthancPluginHttpClient and OrthancPluginGenerateUuid
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 26 Apr 2016 17:40:55 +0200 |
parents | 99b249867052 |
children | 9c9332e486ca |
line wrap: on
line diff
--- a/Core/HttpClient.h Mon Apr 25 17:23:07 2016 +0200 +++ b/Core/HttpClient.h Tue Apr 26 17:40:55 2016 +0200 @@ -43,6 +43,8 @@ class HttpClient { private: + class GlobalParameters; + struct PImpl; boost::shared_ptr<PImpl> pimpl_; @@ -59,11 +61,10 @@ void Setup(); - void operator= (const HttpClient&); // Forbidden + void operator= (const HttpClient&); // Assignment forbidden + HttpClient(const HttpClient& base); // Copy forbidden public: - HttpClient(const HttpClient& base); - HttpClient(); ~HttpClient(); @@ -162,13 +163,20 @@ caCertificates_ = certificates; } - const std::string& GetHttpsCACertificates() const; + const std::string& GetHttpsCACertificates() const + { + return caCertificates_; + } - static void GlobalInitialize(bool httpsVerifyPeers, - const std::string& httpsCACertificates); + static void GlobalInitialize(); static void GlobalFinalize(); + static void ConfigureSsl(bool httpsVerifyPeers, + const std::string& httpsCACertificates); + + static void SetDefaultProxy(const std::string& proxy); + static void SetDefaultTimeout(long timeout); void ApplyAndThrowException(std::string& answer);