mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-10 19:48:47 +02:00
「🔨」 fix: fixed client bullshit things
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/02/03 17:23:00 by mmoussou #+# #+# */
|
||||
/* Updated: 2025/02/14 15:43:32 by mmoussou ### ########.fr */
|
||||
/* Updated: 2025/04/20 11:19:31 by mmoussou ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -27,6 +27,8 @@ namespace http {
|
||||
|
||||
class IRequest: public http::IMessage {
|
||||
public:
|
||||
virtual ~IRequest(void);
|
||||
|
||||
virtual void parse(std::string const &data) = 0;
|
||||
virtual http::Response execute(void) = 0;
|
||||
|
||||
@ -50,6 +52,7 @@ protected:
|
||||
class Get: public http::IRequest {
|
||||
public:
|
||||
Get(void);
|
||||
~Get(void);
|
||||
Get(std::string &data);
|
||||
|
||||
void parse(std::string const &data);
|
||||
@ -61,6 +64,7 @@ public:
|
||||
class Post: public http::IRequest {
|
||||
public:
|
||||
Post(void);
|
||||
~Post(void);
|
||||
Post(std::string &data);
|
||||
|
||||
void parse(std::string const &data);
|
||||
@ -72,6 +76,7 @@ public:
|
||||
class Delete: public http::IRequest {
|
||||
public:
|
||||
Delete(void);
|
||||
~Delete(void);
|
||||
Delete(std::string &data);
|
||||
|
||||
void parse(std::string const &data);
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/02/03 17:21:20 by mmoussou #+# #+# */
|
||||
/* Updated: 2025/03/24 15:16:39 by mmoussou ### ########.fr */
|
||||
/* Updated: 2025/04/20 11:23:53 by mmoussou ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -26,6 +26,7 @@ namespace http {
|
||||
class Response: public http::IMessage {
|
||||
public:
|
||||
Response(void);
|
||||
~Response(void);
|
||||
|
||||
std::string getProtocol(void) const;
|
||||
uint getStatusCode(void) const;
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/04/14 14:14:39 by adjoly #+# #+# */
|
||||
/* Updated: 2025/04/17 18:48:25 by adjoly ### ########.fr */
|
||||
/* Updated: 2025/04/20 11:25:37 by mmoussou ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -24,7 +24,7 @@ namespace server {
|
||||
class Client {
|
||||
public:
|
||||
Client(int, sockaddr_in, config::Server *);
|
||||
~Client(void);
|
||||
virtual ~Client(void);
|
||||
|
||||
void answer(void);
|
||||
|
||||
@ -36,7 +36,6 @@ class Client {
|
||||
http::IRequest *_request;
|
||||
http::Response *_response;
|
||||
config::Server *_conf;
|
||||
Logger *_log;
|
||||
};
|
||||
|
||||
} // -namespace server
|
||||
|
Reference in New Issue
Block a user