Public Member Functions | |
HTTPClientTestData () | |
~HTTPClientTestData () | |
void | setupTheServer () |
void | runThePump (float timeout=100.0f) |
void | killServer () |
Protected Member Functions | |
void | ensureStatusOK () |
void | ensureStatusError () |
LLSD | getResult () |
LLSD | getHeader () |
LLHTTPClient::ResponderPtr | newResult () |
Protected Attributes | |
bool | mSawError |
U32 | mStatus |
std::string | mReason |
bool | mSawCompleted |
bool | mSawCompletedHeader |
LLSD | mResult |
LLSD | mHeader |
bool | mResultDeleted |
Private Attributes | |
apr_pool_t * | mPool |
LLPumpIO * | mServerPump |
LLPumpIO * | mClientPump |
Friends | |
class | Result |
Classes | |
class | Result |
Definition at line 87 of file llhttpclient_tut.cpp.
tut::HTTPClientTestData::HTTPClientTestData | ( | ) | [inline] |
Definition at line 90 of file llhttpclient_tut.cpp.
References mClientPump, mPool, mServerPump, NULL, and LLHTTPClient::setPump().
tut::HTTPClientTestData::~HTTPClientTestData | ( | ) | [inline] |
void tut::HTTPClientTestData::setupTheServer | ( | ) | [inline] |
Definition at line 106 of file llhttpclient_tut.cpp.
References LLHTTPRegistrar::buildAllServices(), LLIOHTTPServer::create(), mPool, mServerPump, and LLHTTPStandardServices::useServices().
void tut::HTTPClientTestData::runThePump | ( | float | timeout = 100.0f |
) | [inline] |
Definition at line 114 of file llhttpclient_tut.cpp.
References LLPumpIO::callback(), LLTimer::hasExpired(), mClientPump, mSawCompleted, mSawCompletedHeader, mServerPump, LLPumpIO::pump(), and LLTimer::setTimerExpirySec().
void tut::HTTPClientTestData::killServer | ( | ) | [inline] |
void tut::HTTPClientTestData::ensureStatusOK | ( | ) | [inline, protected] |
Definition at line 147 of file llhttpclient_tut.cpp.
References llformat(), mSawError, and mStatus.
void tut::HTTPClientTestData::ensureStatusError | ( | ) | [inline, protected] |
LLSD tut::HTTPClientTestData::getResult | ( | ) | [inline, protected] |
LLSD tut::HTTPClientTestData::getHeader | ( | ) | [inline, protected] |
LLHTTPClient::ResponderPtr tut::HTTPClientTestData::newResult | ( | ) | [inline, protected] |
Definition at line 240 of file llhttpclient_tut.cpp.
References indra::ipc::servicebuilder::build(), LLSD::clear(), mHeader, mResult, mResultDeleted, mSawCompleted, mSawCompletedHeader, mSawError, and mStatus.
friend class Result [friend] |
Definition at line 237 of file llhttpclient_tut.cpp.
apr_pool_t* tut::HTTPClientTestData::mPool [private] |
Definition at line 141 of file llhttpclient_tut.cpp.
Referenced by HTTPClientTestData(), setupTheServer(), and ~HTTPClientTestData().
LLPumpIO* tut::HTTPClientTestData::mServerPump [private] |
Definition at line 142 of file llhttpclient_tut.cpp.
Referenced by HTTPClientTestData(), killServer(), runThePump(), setupTheServer(), and ~HTTPClientTestData().
LLPumpIO* tut::HTTPClientTestData::mClientPump [private] |
Definition at line 143 of file llhttpclient_tut.cpp.
Referenced by HTTPClientTestData(), runThePump(), and ~HTTPClientTestData().
bool tut::HTTPClientTestData::mSawError [protected] |
Definition at line 176 of file llhttpclient_tut.cpp.
Referenced by ensureStatusError(), ensureStatusOK(), tut::HTTPClientTestData::Result::error(), and newResult().
U32 tut::HTTPClientTestData::mStatus [protected] |
Definition at line 177 of file llhttpclient_tut.cpp.
Referenced by ensureStatusOK(), tut::HTTPClientTestData::Result::error(), and newResult().
std::string tut::HTTPClientTestData::mReason [protected] |
Definition at line 178 of file llhttpclient_tut.cpp.
Referenced by tut::HTTPClientTestData::Result::error().
bool tut::HTTPClientTestData::mSawCompleted [protected] |
Definition at line 179 of file llhttpclient_tut.cpp.
Referenced by tut::HTTPClientTestData::Result::completed(), newResult(), and runThePump().
bool tut::HTTPClientTestData::mSawCompletedHeader [protected] |
Definition at line 180 of file llhttpclient_tut.cpp.
Referenced by tut::HTTPClientTestData::Result::completedHeader(), newResult(), and runThePump().
LLSD tut::HTTPClientTestData::mResult [protected] |
Definition at line 181 of file llhttpclient_tut.cpp.
Referenced by getResult(), newResult(), and tut::HTTPClientTestData::Result::result().
LLSD tut::HTTPClientTestData::mHeader [protected] |
Definition at line 182 of file llhttpclient_tut.cpp.
Referenced by tut::HTTPClientTestData::Result::completedHeader(), getHeader(), and newResult().
bool tut::HTTPClientTestData::mResultDeleted [protected] |
Definition at line 183 of file llhttpclient_tut.cpp.
Referenced by newResult(), and tut::HTTPClientTestData::Result::~Result().