added abstraction for html parsing and response handling

This commit is contained in:
Thomas Schleicher 2024-10-24 10:34:10 +02:00
parent 11aa11903e
commit 2a4e32a274
4 changed files with 45 additions and 10 deletions

View file

@ -4,6 +4,8 @@
#include <boost/system/detail/error_code.hpp>
#include <memory>
#include <boost/asio.hpp>
#include "request_parser.hpp"
#include "response_handler.hpp"
using namespace boost;
using namespace std;
@ -19,6 +21,8 @@ public:
private:
asio::ip::tcp::socket socket_;
asio::streambuf buffer_;
request_parser request_parser_;
response_handler response_handler_;
explicit tcp_connection(asio::io_context& io_context);