diff options
author | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
commit | b2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch) | |
tree | 3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/llmessage/llhttpclient.h | |
parent | Second Life viewer sources 1.14.0.1 (diff) | |
download | meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.zip meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.gz meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.bz2 meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.xz |
Second Life viewer sources 1.15.0.2
Diffstat (limited to 'linden/indra/llmessage/llhttpclient.h')
-rw-r--r-- | linden/indra/llmessage/llhttpclient.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/linden/indra/llmessage/llhttpclient.h b/linden/indra/llmessage/llhttpclient.h index 93859eb..136577c 100644 --- a/linden/indra/llmessage/llhttpclient.h +++ b/linden/indra/llmessage/llhttpclient.h | |||
@@ -4,6 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (c) 2006-2007, Linden Research, Inc. | 5 | * Copyright (c) 2006-2007, Linden Research, Inc. |
6 | * | 6 | * |
7 | * Second Life Viewer Source Code | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | 8 | * The source code in this file ("Source Code") is provided by Linden Lab |
8 | * to you under the terms of the GNU General Public License, version 2.0 | 9 | * to you under the terms of the GNU General Public License, version 2.0 |
9 | * ("GPL"), unless you have obtained a separate licensing agreement | 10 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -38,6 +39,8 @@ | |||
38 | 39 | ||
39 | #include "llassettype.h" | 40 | #include "llassettype.h" |
40 | 41 | ||
42 | extern const F32 HTTP_REQUEST_EXPIRY_SECS; | ||
43 | |||
41 | class LLUUID; | 44 | class LLUUID; |
42 | class LLPumpIO; | 45 | class LLPumpIO; |
43 | class LLSD; | 46 | class LLSD; |
@@ -69,19 +72,19 @@ public: | |||
69 | 72 | ||
70 | typedef boost::intrusive_ptr<Responder> ResponderPtr; | 73 | typedef boost::intrusive_ptr<Responder> ResponderPtr; |
71 | 74 | ||
72 | static void get(const std::string& url, ResponderPtr); | 75 | static void get(const std::string& url, ResponderPtr, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS); |
73 | static void put(const std::string& url, const LLSD& body, ResponderPtr); | 76 | static void put(const std::string& url, const LLSD& body, ResponderPtr, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS); |
74 | ///< non-blocking | 77 | ///< non-blocking |
75 | static void post(const std::string& url, const LLSD& body, ResponderPtr); | 78 | static void post(const std::string& url, const LLSD& body, ResponderPtr, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS); |
76 | static void post(const std::string& url, const U8* data, S32 size, ResponderPtr responder); | 79 | static void post(const std::string& url, const U8* data, S32 size, ResponderPtr responder, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS); |
77 | static void postFile(const std::string& url, const std::string& filename, ResponderPtr); | 80 | static void postFile(const std::string& url, const std::string& filename, ResponderPtr, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS); |
78 | static void postFile(const std::string& url, const LLUUID& uuid, | 81 | static void postFile(const std::string& url, const LLUUID& uuid, |
79 | LLAssetType::EType asset_type, ResponderPtr responder); | 82 | LLAssetType::EType asset_type, ResponderPtr responder, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS); |
80 | 83 | ||
81 | // Blocking HTTP get that returns an LLSD map of status and body. | 84 | // Blocking HTTP get that returns an LLSD map of status and body. |
82 | static LLSD blockingGet(const std::string& url); | 85 | static LLSD blockingGet(const std::string& url); |
83 | 86 | ||
84 | static void del(const std::string& url, ResponderPtr); | 87 | static void del(const std::string& url, ResponderPtr, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS); |
85 | ///< sends a DELETE method, but we can't call it delete in c++ | 88 | ///< sends a DELETE method, but we can't call it delete in c++ |
86 | 89 | ||
87 | 90 | ||