diff options
author | Rider Linden <none@none> | 2015-03-26 13:32:09 -0700 |
---|---|---|
committer | Rider Linden <none@none> | 2015-03-26 13:32:09 -0700 |
commit | 97b93179692b764aba7eee571f1b557f6f8070db (patch) | |
tree | 73b3d56746f86542833513fd315abc6e575b6e65 /indra/llmessage/llhttpsdhandler.cpp | |
parent | f6ba7514d2392bfb5bbbe8b003b4b860118fddc5 (diff) |
Create trivial handler for SD Messages, method in LLAgent for posting HTTP requests.
Diffstat (limited to 'indra/llmessage/llhttpsdhandler.cpp')
-rw-r--r-- | indra/llmessage/llhttpsdhandler.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/indra/llmessage/llhttpsdhandler.cpp b/indra/llmessage/llhttpsdhandler.cpp index 18daf443ee..0d385d6497 100644 --- a/indra/llmessage/llhttpsdhandler.cpp +++ b/indra/llmessage/llhttpsdhandler.cpp @@ -82,3 +82,24 @@ void LLHttpSDHandler::onCompleted(LLCore::HttpHandle handle, LLCore::HttpRespons delete this; } +//======================================================================== +LLHttpSDGenericHandler::LLHttpSDGenericHandler(const LLURI &uri, const std::string &caps) : + LLHttpSDHandler(uri), + mCaps(caps) +{ +} + +void LLHttpSDGenericHandler::onSuccess(LLCore::HttpResponse * response, LLSD &content) +{ + LL_DEBUGS() << mCaps << " Success." << LL_ENDL; +} + +void LLHttpSDGenericHandler::onFailure(LLCore::HttpResponse * response, LLCore::HttpStatus status) +{ + LL_WARNS() + << "\n--------------------------------------------------------------------------\n" + << mCaps << " Error[" << status.toULong() << "] cannot access cap with url '" + << getUri() << "' because " << status.toString() + << "\n--------------------------------------------------------------------------" + << LL_ENDL; +} |