mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-29 05:17:59 +03:00
add: struct timeval in Client class, and lifeTime in Request
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user