reactie van server
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user