-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathResponse.hpp
33 lines (25 loc) · 960 Bytes
/
Response.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef RESPONSE_HPP
#define RESPONSE_HPP
#include "webserv.hpp"
using std::string;
// class Response //include this here first cuz somehow incomplete type
// {
// private:
// string response_data;
// public:
// Response();
// ~Response();
// void set_response(string newResponse);
// string get_response_data();
// void main_response_function(Request request, vector<Server> &Servers);
// string get_start_line(Request request, string code, Server &server);
// string get_code_string(string error_code);
// string get_error_page(string error_code, Server &server);
// string get_headers(string content);
// void handle_get(Request request, Server &server);
// void handle_post(Request request, Server &server);
// void handle_delete(Request request, Server &server);
// void handle_error(Request request, string error_code, Server &server);
// Server &find_server(Request request, vector<Server> &Servers);
// };
#endif