refactor to use beast
This commit is contained in:
parent
2a4e32a274
commit
656ddf2941
12 changed files with 177 additions and 150 deletions
17
includes/request_handler.hpp
Normal file
17
includes/request_handler.hpp
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef REQUEST_HANDLER_HPP
|
||||
#define REQUEST_HANDLER_HPP
|
||||
|
||||
#include <boost/beast/http.hpp>
|
||||
#include <boost/beast/http/message.hpp>
|
||||
#include <boost/beast/http/string_body.hpp>
|
||||
|
||||
using namespace boost::beast;
|
||||
|
||||
class RequestHandler {
|
||||
public:
|
||||
http::response<http::string_body> handle(const http::request<http::string_body>& request);
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in a new issue