}
//------------------------------------------------------------------------------
-void Request::abort()
-{
- abort("Request aborted.");
-}
-
-//----------------------------------------------------------------------------
-void Request::abort(const std::string& reason)
+bool Request::closeAfterComplete() const
{
- setFailure(-1, reason);
- _willClose = true;
+ // for non HTTP/1.1 connections, assume server closes
+ return _willClose || (_responseVersion != HTTP_1_1);
}
//------------------------------------------------------------------------------
-bool Request::closeAfterComplete() const
+
+void Request::setCloseAfterComplete()
{
- // for non HTTP/1.1 connections, assume server closes
- return _willClose || (_responseVersion != HTTP_1_1);
+ _willClose = true;
}
//------------------------------------------------------------------------------