🏗️」 wip: reformated a lot of file

This commit is contained in:
2025-04-30 10:42:23 +02:00
parent 41efd2c19e
commit 19bc8730e6
10 changed files with 469 additions and 435 deletions

View File

@ -0,0 +1,33 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* IMessage.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/11 23:34:45 by mmoussou #+# #+# */
/* Updated: 2025/04/30 09:48:31 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include <requests/default.hpp>
using namespace webserv::http;
std::map<std::string, std::string> IMessage::getHeaders(void) const {
return (this->_headers);
}
std::string IMessage::getBody(void) const { return (this->_body); }
void IMessage::setHeaders(std::map<std::string, std::string> const headers) {
this->_headers = headers;
}
void IMessage::setBody(std::string const body) { this->_body = body; }
void IMessage::addHeader(std::string const key, std::string const value) {
this->_headers.insert(std::make_pair(key, value));
}
void IMessage::rmHeader(std::string const key) { this->_headers.erase(key); }