mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-10 23:28:46 +02:00
46 lines
1.4 KiB
C++
46 lines
1.4 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* Response.hpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2025/02/03 17:21:20 by mmoussou #+# #+# */
|
|
/* Updated: 2025/04/30 09:33:47 by adjoly ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#pragma once
|
|
|
|
#include <sstream>
|
|
|
|
#include <requests/IMessage.hpp>
|
|
|
|
typedef unsigned int uint;
|
|
|
|
namespace webserv {
|
|
namespace http {
|
|
|
|
class Response : public http::IMessage {
|
|
public:
|
|
Response(void);
|
|
~Response(void);
|
|
|
|
std::string getProtocol(void) const;
|
|
uint getStatusCode(void) const;
|
|
std::string getStatusText(void) const;
|
|
|
|
void setProtocol(std::string const protocol);
|
|
void setStatusCode(uint const status_code);
|
|
|
|
std::string str(void) const;
|
|
|
|
private:
|
|
std::string _protocol;
|
|
uint _status_code;
|
|
std::string _status_text;
|
|
};
|
|
|
|
} // namespace http
|
|
} // namespace webserv
|