mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-11 00:58:46 +02:00
「🏗️」 wip(http): work in progress, not done yet.
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/02/03 17:21:20 by mmoussou #+# #+# */
|
||||
/* Updated: 2025/03/19 02:09:01 by mmoussou ### ########.fr */
|
||||
/* Updated: 2025/03/24 15:16:39 by mmoussou ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -18,6 +18,8 @@
|
||||
|
||||
#include <requests/HttpIMessage.hpp>
|
||||
|
||||
typedef unsigned int uint;
|
||||
|
||||
namespace webserv {
|
||||
namespace http {
|
||||
|
||||
@ -26,17 +28,17 @@ public:
|
||||
Response(void);
|
||||
|
||||
std::string getProtocol(void) const;
|
||||
size_t getStatusCode(void) const;
|
||||
uint getStatusCode(void) const;
|
||||
std::string getStatusText(void) const;
|
||||
|
||||
void setProtocol(std::string const protocol);
|
||||
void setStatusCode(size_t const status_code);
|
||||
void setStatusCode(uint const status_code);
|
||||
|
||||
std::string str(void) const;
|
||||
|
||||
private:
|
||||
std::string _protocol;
|
||||
size_t _status_code;
|
||||
uint _status_code;
|
||||
std::string _status_text;
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user