HTTP enhancements.

Support content-encoding and improve pipelining support.
This commit is contained in:
James Turner
2012-10-27 18:03:51 +01:00
parent d0ae09c7e2
commit 71be1a9e28
5 changed files with 438 additions and 110 deletions
+16
View File
@@ -218,6 +218,22 @@ bool Request::closeAfterComplete() const
// for non HTTP/1.1 connections, assume server closes
return _willClose || (_responseVersion != HTTP_1_1);
}
int Request::requestBodyLength() const
{
return -1;
}
std::string Request::requestBodyType() const
{
return "text/plain";
}
void Request::getBodyData(char*, int& count) const
{
count = 0;
return;
}
} // of namespace HTTP