aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llcurl.h
diff options
context:
space:
mode:
authorJacek Antonelli2010-02-08 19:01:20 -0600
committerJacek Antonelli2010-02-08 19:01:20 -0600
commite7b590f6c90cefac0861a906523c398613ad1321 (patch)
tree73e7f88f726ca3ae3bbbeeed38874ef8f8538aa0 /linden/indra/llmessage/llcurl.h
parentPorted some thread changes from Snowglobe. (diff)
downloadmeta-impy-e7b590f6c90cefac0861a906523c398613ad1321.zip
meta-impy-e7b590f6c90cefac0861a906523c398613ad1321.tar.gz
meta-impy-e7b590f6c90cefac0861a906523c398613ad1321.tar.bz2
meta-impy-e7b590f6c90cefac0861a906523c398613ad1321.tar.xz
Ported some cURL and HTTP-related changes from Snowglobe.
Diffstat (limited to '')
-rw-r--r--linden/indra/llmessage/llcurl.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/linden/indra/llmessage/llcurl.h b/linden/indra/llmessage/llcurl.h
index ff63904..3e9c0d4 100644
--- a/linden/indra/llmessage/llcurl.h
+++ b/linden/indra/llmessage/llcurl.h
@@ -188,12 +188,14 @@ namespace boost
188class LLCurlRequest 188class LLCurlRequest
189{ 189{
190public: 190public:
191 typedef std::vector<std::string> headers_t;
192
191 LLCurlRequest(); 193 LLCurlRequest();
192 ~LLCurlRequest(); 194 ~LLCurlRequest();
193 195
194 void get(const std::string& url, LLCurl::ResponderPtr responder); 196 void get(const std::string& url, LLCurl::ResponderPtr responder);
195 bool getByteRange(const std::string& url, S32 offset, S32 length, LLCurl::ResponderPtr responder); 197 bool getByteRange(const std::string& url, const headers_t& headers, S32 offset, S32 length, LLCurl::ResponderPtr responder);
196 bool post(const std::string& url, const LLSD& data, LLCurl::ResponderPtr responder); 198 bool post(const std::string& url, const headers_t& headers, const LLSD& data, LLCurl::ResponderPtr responder);
197 S32 process(); 199 S32 process();
198 S32 getQueued(); 200 S32 getQueued();
199 201
@@ -207,6 +209,7 @@ private:
207 curlmulti_set_t mMultiSet; 209 curlmulti_set_t mMultiSet;
208 LLCurl::Multi* mActiveMulti; 210 LLCurl::Multi* mActiveMulti;
209 S32 mActiveRequestCount; 211 S32 mActiveRequestCount;
212 U32 mThreadID; // debug
210}; 213};
211 214
212class LLCurlEasyRequest 215class LLCurlEasyRequest