diff options
Diffstat (limited to 'indra/newview/llcaphttpsender.h')
| -rw-r--r-- | indra/newview/llcaphttpsender.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/indra/newview/llcaphttpsender.h b/indra/newview/llcaphttpsender.h new file mode 100644 index 0000000000..af71c66563 --- /dev/null +++ b/indra/newview/llcaphttpsender.h @@ -0,0 +1,30 @@ +/** + * @file llcaphttpsender.h + * @brief Abstracts details of sending messages via the + * UntrustedMessage capability. + * + * Copyright (c) 2007-$CurrentYear$, Linden Research, Inc. + * $License$ + */ + +#ifndef LL_CAP_HTTP_SENDER_H +#define LL_CAP_HTTP_SENDER_H + +#include "llhttpsender.h" + +class LLCapHTTPSender : public LLHTTPSender +{ +public: + LLCapHTTPSender(const std::string& cap); + + /** @brief Send message via UntrustedMessage capability with body, + call response when done */ + virtual void send(const LLHost& host, + const char* message, const LLSD& body, + LLHTTPClient::ResponderPtr response) const; + +private: + std::string mCap; +}; + +#endif // LL_CAP_HTTP_SENDER_H |
