aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llhttpsender.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:54 -0500
committerJacek Antonelli2008-08-15 23:44:54 -0500
commitb2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch)
tree3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/llmessage/llhttpsender.h
parentSecond Life viewer sources 1.14.0.1 (diff)
downloadmeta-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 '')
-rw-r--r--linden/indra/llmessage/llhttpsender.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/linden/indra/llmessage/llhttpsender.h b/linden/indra/llmessage/llhttpsender.h
new file mode 100644
index 0000000..650a0e9
--- /dev/null
+++ b/linden/indra/llmessage/llhttpsender.h
@@ -0,0 +1,58 @@
1/**
2 * @file llhttpsender.h
3 * @brief Abstracts details of sending messages via HTTP.
4 *
5 * Copyright (c) 2007-2007, Linden Research, Inc.
6 *
7 * Second Life Viewer Source Code
8 * The source code in this file ("Source Code") is provided by Linden Lab
9 * to you under the terms of the GNU General Public License, version 2.0
10 * ("GPL"), unless you have obtained a separate licensing agreement
11 * ("Other License"), formally executed by you and Linden Lab. Terms of
12 * the GPL can be found in doc/GPL-license.txt in this distribution, or
13 * online at http://secondlife.com/developers/opensource/gplv2
14 *
15 * There are special exceptions to the terms and conditions of the GPL as
16 * it is applied to this Source Code. View the full text of the exception
17 * in the file doc/FLOSS-exception.txt in this software distribution, or
18 * online at http://secondlife.com/developers/opensource/flossexception
19 *
20 * By copying, modifying or distributing this software, you acknowledge
21 * that you have read and understood your obligations described above,
22 * and agree to abide by those obligations.
23 *
24 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
25 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
26 * COMPLETENESS OR PERFORMANCE.
27 */
28
29#ifndef LL_HTTP_SENDER_H
30#define LL_HTTP_SENDER_H
31
32#include "llhttpclient.h"
33
34class LLHost;
35class LLSD;
36
37class LLHTTPSender
38{
39 public:
40
41 virtual ~LLHTTPSender();
42
43 /** @brief Send message to host with body, call response when done */
44 virtual void send(const LLHost& host,
45 const char* message, const LLSD& body,
46 LLHTTPClient::ResponderPtr response) const;
47
48 /** @brief Set sender for host, takes ownership of sender. */
49 static void setSender(const LLHost& host, LLHTTPSender* sender);
50
51 /** @brief Get sender for host, retains ownership of returned sender. */
52 static const LLHTTPSender& getSender(const LLHost& host);
53
54 /** @brief Clear sender for host. */
55 static void clearSender(const LLHost& host);
56};
57
58#endif // LL_HTTP_SENDER_H