TARAXA
taraxa::net::HttpConnection Class Reference

#include <http_server.hpp>

Collaboration diagram for taraxa::net::HttpConnection:

Public Member Functions

 HttpConnection (const std::shared_ptr< HttpServer > &http_server)
 
virtual ~HttpConnection ()
 
boost::asio::ip::tcp::socket & getSocket ()
 
virtual std::shared_ptr< HttpConnectiongetShared ()
 
void read ()
 
void stop ()
 

Protected Attributes

std::shared_ptr< HttpServerserver_
 
boost::asio::ip::tcp::socket socket_
 
boost::beast::flat_buffer buffer_
 
boost::beast::http::request< boost::beast::http::string_body > request_
 
boost::beast::http::response< boost::beast::http::string_body > response_
 

Constructor & Destructor Documentation

◆ HttpConnection()

taraxa::net::HttpConnection::HttpConnection ( const std::shared_ptr< HttpServer > &  http_server)
explicit

◆ ~HttpConnection()

virtual taraxa::net::HttpConnection::~HttpConnection ( )
inlinevirtual

Member Function Documentation

◆ getShared()

std::shared_ptr< HttpConnection > taraxa::net::HttpConnection::getShared ( )
virtual

◆ getSocket()

boost::asio::ip::tcp::socket& taraxa::net::HttpConnection::getSocket ( )
inline

◆ read()

void taraxa::net::HttpConnection::read ( )

◆ stop()

void taraxa::net::HttpConnection::stop ( )

Member Data Documentation

◆ buffer_

boost::beast::flat_buffer taraxa::net::HttpConnection::buffer_
protected

◆ request_

boost::beast::http::request<boost::beast::http::string_body> taraxa::net::HttpConnection::request_
protected

◆ response_

boost::beast::http::response<boost::beast::http::string_body> taraxa::net::HttpConnection::response_
protected

◆ server_

std::shared_ptr<HttpServer> taraxa::net::HttpConnection::server_
protected

◆ socket_

boost::asio::ip::tcp::socket taraxa::net::HttpConnection::socket_
protected

The documentation for this class was generated from the following files: