added abstraction for html parsing and response handling
This commit is contained in:
parent
11aa11903e
commit
2a4e32a274
4 changed files with 45 additions and 10 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Reference in a new issue