summaryrefslogtreecommitdiffhomepage
path: root/response.h
blob: ad3d2fc0b57fcb2d1003247e873dd5494186e343 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include "server.h"

#include <boost/beast/http.hpp>

#include <exception>
#include <string>

namespace beast = boost::beast;         // from <boost/beast.hpp>
namespace http = beast::http;           // from <boost/beast/http.hpp>

typedef http::request<http::string_body> request_type;
typedef http::response<http::string_body> response_type;

response_type generate_response(request_type& req, Server& server);