aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llurlrequest.h
diff options
context:
space:
mode:
authorJacek Antonelli2009-04-30 13:04:20 -0500
committerJacek Antonelli2009-04-30 13:07:16 -0500
commitca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e (patch)
tree8348301d0ac44a524f1819b777686bf086907d76 /linden/indra/llmessage/llurlrequest.h
parentSecond Life viewer sources 1.22.11 (diff)
downloadmeta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.zip
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.gz
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.bz2
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.xz
Second Life viewer sources 1.23.0-RC
Diffstat (limited to 'linden/indra/llmessage/llurlrequest.h')
-rw-r--r--linden/indra/llmessage/llurlrequest.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/linden/indra/llmessage/llurlrequest.h b/linden/indra/llmessage/llurlrequest.h
index c76eec8..d1facbf 100644
--- a/linden/indra/llmessage/llurlrequest.h
+++ b/linden/indra/llmessage/llurlrequest.h
@@ -19,7 +19,8 @@
19 * There are special exceptions to the terms and conditions of the GPL as 19 * There are special exceptions to the terms and conditions of the GPL as
20 * it is applied to this Source Code. View the full text of the exception 20 * it is applied to this Source Code. View the full text of the exception
21 * in the file doc/FLOSS-exception.txt in this software distribution, or 21 * in the file doc/FLOSS-exception.txt in this software distribution, or
22 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception 22 * online at
23 * http://secondlifegrid.net/programs/open_source/licensing/flossexception
23 * 24 *
24 * By copying, modifying or distributing this software, you acknowledge 25 * By copying, modifying or distributing this software, you acknowledge
25 * that you have read and understood your obligations described above, 26 * that you have read and understood your obligations described above,
@@ -286,11 +287,13 @@ class LLURLRequestComplete : public LLIOPipe
286{ 287{
287public: 288public:
288 289
290 // Called once for each header received, except status lines
289 virtual void header(const std::string& header, const std::string& value); 291 virtual void header(const std::string& header, const std::string& value);
290 ///< Called once for each header received, prior to httpStatus
291 292
292 virtual void httpStatus(U32 status, const std::string& reason); 293 // May be called more than once, particularly for redirects and proxy madness.
293 ///< Always called on request completion, prior to complete 294 // Ex. a 200 for a connection to https through a proxy, followed by the "real" status
295 // a 3xx for a redirect followed by a "real" status, or more redirects.
296 virtual void httpStatus(U32 status, const std::string& reason) { }
294 297
295 virtual void complete( 298 virtual void complete(
296 const LLChannelDescriptors& channels, 299 const LLChannelDescriptors& channels,
@@ -327,9 +330,6 @@ public:
327 LLURLRequestComplete(); 330 LLURLRequestComplete();
328 virtual ~LLURLRequestComplete(); 331 virtual ~LLURLRequestComplete();
329 332
330 // The first line of an http response must be the status line
331 // true if we have already parsed this line.
332 bool haveHTTPStatus() const { return mHaveHTTPStatus; }
333protected: 333protected:
334 /* @name LLIOPipe virtual implementations 334 /* @name LLIOPipe virtual implementations
335 */ 335 */
@@ -348,8 +348,6 @@ protected:
348 // value to note if we actually got the response. This value 348 // value to note if we actually got the response. This value
349 // depends on correct useage from the LLURLRequest instance. 349 // depends on correct useage from the LLURLRequest instance.
350 EStatus mRequestStatus; 350 EStatus mRequestStatus;
351
352 bool mHaveHTTPStatus;
353}; 351};
354 352
355 353