🏗️」 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:
y-syo
2025-02-12 01:36:19 +01:00
parent 3041ebbc95
commit 6b2632534c
9 changed files with 197 additions and 70 deletions

View File

@ -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;
};