mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-29 13:27:59 +03:00
add: config support in client and Response class
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "ServerConfig.hpp"
|
||||
#include "Request.hpp"
|
||||
#include "Response.hpp"
|
||||
#include "Config.hpp"
|
||||
#include <cstring>
|
||||
|
||||
class Client
|
||||
@@ -18,7 +19,7 @@ private:
|
||||
private:
|
||||
int _ret;
|
||||
int _fd;
|
||||
struct timeval _time;
|
||||
struct timeval _time;
|
||||
unsigned int _sended;
|
||||
char *_buff;
|
||||
|
||||
@@ -71,13 +72,13 @@ public:
|
||||
void increaseCounter(void);
|
||||
void increaseRecvCounter(unsigned int n);
|
||||
std::string generateRespons(void);
|
||||
std::string generateRespons(serverListen &, std::vector<ServerConfig *> &);
|
||||
|
||||
Client();
|
||||
Client(char *);
|
||||
Client(char *, ServerConfig *config);
|
||||
~Client();
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user