add: struct timeval in Client class, and lifeTime in Request

This commit is contained in:
Talyx
2022-02-01 18:34:50 +03:00
parent f8343098e8
commit 0efe9d1bc3
5 changed files with 28 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ Request::Request()
_body_ok = false;
_received = 0;
_headerSize = 0;
_lifeTime = 5;
}
@@ -26,6 +27,7 @@ Request::Request(char *str)
_chunked = false;
_contentLength = 0;
_headerSize = 0;
_lifeTime = 5;
}
//-------------------------------------------------Get/Set---------------------------------------
@@ -74,6 +76,10 @@ int Request::getCode(void)
{
return (_ret);
}
int Request::getLifeTime(void)
{
return (_lifeTime);
}
std::map<std::string, std::string> Request::getClientFields(void)
{
return (_headerField);