reactie van server

This commit is contained in:
2026-09-13 13:13:33 +02:00
parent 72d072bb6c
commit 2114e11f90
5 changed files with 110 additions and 28 deletions
+30
View File
@@ -0,0 +1,30 @@
/*********************************/
/* */
/* o.riabenkyi@gmail.com */
/* */
/*********************************/
#ifndef RESPONSE_HPP
#define RESPONSE_HPP
#include <string>
#include <utility>
#include <vector>
#include "http/HttpStatus.hpp"
namespace webserv {
const char* reasonPhrase(HttpStatus status) noexcept;
struct Response {
HttpStatus status;
std::vector<std::pair<std::string, std::string>> headers;
std::vector<char> body;
};
std::vector<char> serialize(const Response& response);
} // namespace webserv
#endif