#include <llhttpclient.h>
Inheritance diagram for LLHTTPClient::Responder:
Public Member Functions | |
Responder () | |
virtual | ~Responder () |
virtual void | error (U32 status, const std::string &reason) |
virtual void | result (const LLSD &content) |
virtual void | completedRaw (U32 status, const std::string &reason, const LLChannelDescriptors &channels, const LLIOPipe::buffer_ptr_t &buffer) |
virtual void | completed (U32 status, const std::string &reason, const LLSD &content) |
Static Public Member Functions | |
static bool | isGoodStatus (U32 status) |
return true if the status code indicates success. | |
Public Attributes | |
U32 | mReferenceCount |
Definition at line 57 of file llhttpclient.h.
LLHTTPClient::Responder::Responder | ( | ) |
Definition at line 52 of file llhttpclient.cpp.
LLHTTPClient::Responder::~Responder | ( | ) | [virtual] |
Definition at line 57 of file llhttpclient.cpp.
void LLHTTPClient::Responder::completed | ( | U32 | status, | |
const std::string & | reason, | |||
const LLSD & | content | |||
) | [virtual] |
The default implemetnation calls either: result(), or error()
Reimplemented in tut::HTTPClientTestData::Result.
Definition at line 97 of file llhttpclient.cpp.
References error(), isGoodStatus(), and result().
Referenced by tut::HTTPClientTestData::Result::completed(), and completedRaw().
void LLHTTPClient::Responder::completedRaw | ( | U32 | status, | |
const std::string & | reason, | |||
const LLChannelDescriptors & | channels, | |||
const LLIOPipe::buffer_ptr_t & | buffer | |||
) | [virtual] |
Definition at line 74 of file llhttpclient.cpp.
References completed(), LLSDSerialize::fromXML(), and isGoodStatus().
Reimplemented in LLAssetUploadResponder, LLClassifiedStatsResponder, LLHTTPFetchTree, LLHTTPFetchContent, LLUserReportResponder, LLIamHere, LLVoiceCallCapResponder, LLSessionInviteResponder, LLViewerChatterBoxInvitationAcceptResponder, LLIamHereLogin, LLRemoteParcelRequestResponder, LLHTTPUpdateResponder, LLTextureFetchWorker::URLResponder, LLCopyInventoryFromNotecardResponder, BaseCapabilitiesComplete, LLViewerVoiceAccountProvisionResponder, LLVoiceClientCapResponder, ViewerStatsResponder, and tut::HTTPClientTestData::Result.
Definition at line 62 of file llhttpclient.cpp.
References llendl, and llinfos.
Referenced by completed().
static bool LLHTTPClient::Responder::isGoodStatus | ( | U32 | status | ) | [inline, static] |
return true if the status code indicates success.
Definition at line 66 of file llhttpclient.h.
Referenced by completed(), and completedRaw().
Reimplemented in LLAssetUploadResponder, LLClassifiedStatsResponder, LLHTTPFetchTree, LLHTTPFetchContent, LLUserReportResponder, LLIamHere, LLVoiceCallCapResponder, LLViewerChatterBoxInvitationAcceptResponder, LLMapLayerResponder, LLIamHereLogin, LLRemoteParcelRequestResponder, LLHTTPUpdateResponder, LLTextureFetchWorker::URLResponder, LLCopyInventoryFromNotecardResponder, BaseCapabilitiesComplete, LLViewerVoiceAccountProvisionResponder, LLVoiceClientCapResponder, ViewerStatsResponder, and tut::HTTPClientTestData::Result.
Definition at line 69 of file llhttpclient.cpp.
Referenced by completed().
Definition at line 87 of file llhttpclient.h.