diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmessage/llhttpclient.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/linden/indra/llmessage/llhttpclient.h b/linden/indra/llmessage/llhttpclient.h index 578b176..8c2309c 100644 --- a/linden/indra/llmessage/llhttpclient.h +++ b/linden/indra/llmessage/llhttpclient.h | |||
@@ -2,6 +2,8 @@ | |||
2 | * @file llhttpclient.h | 2 | * @file llhttpclient.h |
3 | * @brief Declaration of classes for making HTTP client requests. | 3 | * @brief Declaration of classes for making HTTP client requests. |
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2006&license=viewergpl$ | ||
6 | * | ||
5 | * Copyright (c) 2006-2007, Linden Research, Inc. | 7 | * Copyright (c) 2006-2007, Linden Research, Inc. |
6 | * | 8 | * |
7 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
@@ -24,6 +26,7 @@ | |||
24 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | 26 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO |
25 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 27 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
26 | * COMPLETENESS OR PERFORMANCE. | 28 | * COMPLETENESS OR PERFORMANCE. |
29 | * $/LicenseInfo$ | ||
27 | */ | 30 | */ |
28 | 31 | ||
29 | #ifndef LL_LLHTTPCLIENT_H | 32 | #ifndef LL_LLHTTPCLIENT_H |
@@ -57,6 +60,14 @@ public: | |||
57 | Responder(); | 60 | Responder(); |
58 | virtual ~Responder(); | 61 | virtual ~Responder(); |
59 | 62 | ||
63 | /** | ||
64 | * @brief return true if the status code indicates success. | ||
65 | */ | ||
66 | static bool isGoodStatus(U32 status) | ||
67 | { | ||
68 | return((200 <= status) && (status < 300)); | ||
69 | } | ||
70 | |||
60 | virtual void error(U32 status, const std::string& reason); // called with bad status codes | 71 | virtual void error(U32 status, const std::string& reason); // called with bad status codes |
61 | 72 | ||
62 | virtual void result(const LLSD& content); | 73 | virtual void result(const LLSD& content); |