mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-11 02:48:45 +02:00
「🏗️」 wip(requests): from map to multimap for multiple headers with same key(still tmp commit, will redo them correctly after i'm done)
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/02/11 22:21:52 by mmoussou ### ########.fr */
|
||||
/* Updated: 2025/02/12 00:50:47 by mmoussou ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -14,6 +14,8 @@
|
||||
#ifndef __WEBSERV_REQUESTS_HTTP_RESPONSE_HPP__
|
||||
# define __WEBSERV_REQUESTS_HTTP_RESPONSE_HPP__
|
||||
|
||||
#include <sstream>
|
||||
|
||||
#include <requests/HttpIMessage.hpp>
|
||||
|
||||
namespace webserv {
|
||||
@ -22,16 +24,6 @@ namespace http {
|
||||
class Response: public http::IMessage {
|
||||
public:
|
||||
Response(void);
|
||||
/*
|
||||
* ? either : (templated)
|
||||
Response<Get>();
|
||||
Response<Post>();
|
||||
|
||||
* or : (if too different ? idk tbh)
|
||||
Response(Get const req);
|
||||
Response(Post const req);
|
||||
*/
|
||||
~Response(void);
|
||||
|
||||
std::string getProtocol(void) const;
|
||||
size_t getStatusCode(void) const;
|
||||
@ -44,9 +36,9 @@ public:
|
||||
std::string str(void) const;
|
||||
|
||||
private:
|
||||
std::string _protocol;
|
||||
size_t _status_code;
|
||||
std::string _status_text;
|
||||
std::string _protocol;
|
||||
size_t _status_code;
|
||||
std::string _status_text;
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user