diff options
author | Rider Linden <none@none> | 2015-03-16 17:14:34 -0700 |
---|---|---|
committer | Rider Linden <none@none> | 2015-03-16 17:14:34 -0700 |
commit | 6f4d36634e980bb989b9a8b762c3c622804c43dd (patch) | |
tree | efa71ac14bdef46b9796688d4a445d60fdd5b1c3 /indra/llcorehttp/httpoptions.h | |
parent | d4a2e9fd9a0e7001a6c824ddd6cf37039a632b9d (diff) |
Removal of RPCXML dep on LLCurl switching to LLCore::Html
Diffstat (limited to 'indra/llcorehttp/httpoptions.h')
-rwxr-xr-x | indra/llcorehttp/httpoptions.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/indra/llcorehttp/httpoptions.h b/indra/llcorehttp/httpoptions.h index 4ab5ff18c4..d6d892213d 100755 --- a/indra/llcorehttp/httpoptions.h +++ b/indra/llcorehttp/httpoptions.h @@ -61,6 +61,8 @@ class HttpOptions : public LLCoreInt::RefCounted public: HttpOptions(); + typedef boost::intrusive_ptr<HttpOptions> ptr_t; + protected: virtual ~HttpOptions(); // Use release() @@ -109,6 +111,31 @@ public: { return mUseRetryAfter; } + + // Default: false + void setFollowRedirects(bool follow_redirect); + bool getFollowRedirects() const + { + return mFollowRedirects; + } + + void setSSLVerifyPeer(bool verify); + bool getSSLVerifyPeer() const + { + return mVerifyPeer; + } + + void setSSLVerifyHost(unsigned int type); + unsigned int getSSLVerifyHost() const + { + return mVerifyHost; + } + + void setDNSCacheTimeout(int timeout); + int getDNSCacheTimeout() const + { + return mDNSCacheTimeout; + } protected: bool mWantHeaders; @@ -117,6 +144,10 @@ protected: unsigned int mTransferTimeout; unsigned int mRetries; bool mUseRetryAfter; + bool mFollowRedirects; + bool mVerifyPeer; + unsigned int mVerifyHost; + int mDNSCacheTimeout; }; // end class HttpOptions |