mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-29 13:27:59 +03:00
feat: allRead
This commit is contained in:
@@ -4,12 +4,14 @@
|
|||||||
|
|
||||||
Client::Client()
|
Client::Client()
|
||||||
{
|
{
|
||||||
|
allRead = false;
|
||||||
this->_fd = -1;
|
this->_fd = -1;
|
||||||
this->_sended = 0;
|
this->_sended = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Client::Client(char *str)
|
Client::Client(char *str)
|
||||||
{
|
{
|
||||||
|
allRead = false;
|
||||||
this->_fd = -1;
|
this->_fd = -1;
|
||||||
this->_buff = str;
|
this->_buff = str;
|
||||||
this->_sended = 0;
|
this->_sended = 0;
|
||||||
@@ -18,6 +20,7 @@ Client::Client(char *str)
|
|||||||
|
|
||||||
Client::Client(char *str, ServerConfig *config)
|
Client::Client(char *str, ServerConfig *config)
|
||||||
{
|
{
|
||||||
|
allRead = false;
|
||||||
this->_fd = -1;
|
this->_fd = -1;
|
||||||
this->_config = config;
|
this->_config = config;
|
||||||
this->_buff = str;
|
this->_buff = str;
|
||||||
@@ -150,7 +153,8 @@ void Client::printClientInfo(void)
|
|||||||
std::cout << PINK << it->first << BLUE << it->second << ZERO_C << std::endl;
|
std::cout << PINK << it->first << BLUE << it->second << ZERO_C << std::endl;
|
||||||
}
|
}
|
||||||
std::cout << TURGUOISE << "Client BODY" << ZERO_C << std::endl;
|
std::cout << TURGUOISE << "Client BODY" << ZERO_C << std::endl;
|
||||||
std::cout << BLUE << _request.getBody() << ZERO_C << std::endl;
|
std::cout << BLUE << _request.getBody().size() << ZERO_C << std::endl;
|
||||||
|
/* std::cout << BLUE << _request.getBody() << ZERO_C << std::endl; */
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,9 @@ private:
|
|||||||
std::string _toSend;
|
std::string _toSend;
|
||||||
std::map<std::string, std::string> _errorCode;
|
std::map<std::string, std::string> _errorCode;
|
||||||
|
|
||||||
|
public:
|
||||||
|
bool allRead;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Request getRequest(void);
|
Request getRequest(void);
|
||||||
Response getResponse(void);
|
Response getResponse(void);
|
||||||
@@ -35,6 +38,7 @@ public:
|
|||||||
void setFd(int);
|
void setFd(int);
|
||||||
int getFd(void);
|
int getFd(void);
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
int parseRequest(void);
|
int parseRequest(void);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user