Added AbstractHandler, WrapHandler. HTTPClient Fixes.

This commit is contained in:
Vinnie Falco
2013-09-25 11:24:51 -07:00
parent c568988640
commit d939c039f1
11 changed files with 1436 additions and 689 deletions

View File

@@ -54,17 +54,17 @@ public:
ScopedPointer <HTTPClientBase> client (HTTPClientBase::New ());
HTTPClientBase::Result httpResult (client->get (m_url));
HTTPClientBase::result_type httpResult (client->get (m_url));
if (httpResult.error == 0)
if (httpResult.first == 0)
{
//Logger::outputDebugString (httpResult.response->toString ());
//Logger::outputDebugString (httpResult.second->toString ());
}
else
{
journal.error <<
"HTTP GET to " << m_url.full().toStdString() <<
" failed: '" << httpResult.error.message () << "'";
" failed: '" << httpResult.first.message () << "'";
}
return result;