Electroneum
epee::net_utils::http::simple_http_connection_handler< t_connection_context > Class Template Reference

#include <http_protocol_handler.h>

Inheritance diagram for epee::net_utils::http::simple_http_connection_handler< t_connection_context >:
Collaboration diagram for epee::net_utils::http::simple_http_connection_handler< t_connection_context >:

Public Types

typedef t_connection_context connection_context
 
typedef http_server_config config_type
 

Public Member Functions

 simple_http_connection_handler (i_service_endpoint *psnd_hndlr, config_type &config, t_connection_context &conn_context)
 
virtual ~simple_http_connection_handler ()
 
bool release_protocol ()
 
virtual bool thread_init ()
 
virtual bool thread_deinit ()
 
bool after_init_connection ()
 
virtual bool handle_recv (const void *ptr, size_t cb)
 
virtual bool handle_request (const http::http_request_info &query_info, http_response_info &response)
 

Protected Attributes

i_service_endpointm_psnd_hndlr
 
t_connection_context & m_conn_context
 

Detailed Description

template<class t_connection_context = net_utils::connection_context_base>
class epee::net_utils::http::simple_http_connection_handler< t_connection_context >

Definition at line 66 of file http_protocol_handler.h.

Member Typedef Documentation

◆ config_type

template<class t_connection_context = net_utils::connection_context_base>
typedef http_server_config epee::net_utils::http::simple_http_connection_handler< t_connection_context >::config_type

Definition at line 70 of file http_protocol_handler.h.

◆ connection_context

template<class t_connection_context = net_utils::connection_context_base>
typedef t_connection_context epee::net_utils::http::simple_http_connection_handler< t_connection_context >::connection_context

Definition at line 69 of file http_protocol_handler.h.

Constructor & Destructor Documentation

◆ simple_http_connection_handler()

template<class t_connection_context = net_utils::connection_context_base>
epee::net_utils::http::simple_http_connection_handler< t_connection_context >::simple_http_connection_handler ( i_service_endpoint psnd_hndlr,
config_type config,
t_connection_context &  conn_context 
)

◆ ~simple_http_connection_handler()

template<class t_connection_context = net_utils::connection_context_base>
virtual epee::net_utils::http::simple_http_connection_handler< t_connection_context >::~simple_http_connection_handler ( )
inlinevirtual

Definition at line 73 of file http_protocol_handler.h.

73 {}

Member Function Documentation

◆ after_init_connection()

template<class t_connection_context = net_utils::connection_context_base>
bool epee::net_utils::http::simple_http_connection_handler< t_connection_context >::after_init_connection ( )
inline

Definition at line 89 of file http_protocol_handler.h.

90  {
91  return true;
92  }

◆ handle_recv()

template<class t_connection_context = net_utils::connection_context_base>
virtual bool epee::net_utils::http::simple_http_connection_handler< t_connection_context >::handle_recv ( const void *  ptr,
size_t  cb 
)
virtual

◆ handle_request()

template<class t_connection_context = net_utils::connection_context_base>
virtual bool epee::net_utils::http::simple_http_connection_handler< t_connection_context >::handle_request ( const http::http_request_info query_info,
http_response_info response 
)
virtual

◆ release_protocol()

template<class t_connection_context = net_utils::connection_context_base>
bool epee::net_utils::http::simple_http_connection_handler< t_connection_context >::release_protocol ( )
inline

Definition at line 75 of file http_protocol_handler.h.

76  {
77  return true;
78  }

◆ thread_deinit()

template<class t_connection_context = net_utils::connection_context_base>
virtual bool epee::net_utils::http::simple_http_connection_handler< t_connection_context >::thread_deinit ( )
inlinevirtual

Reimplemented in epee::net_utils::http::http_custom_handler< t_connection_context >.

Definition at line 85 of file http_protocol_handler.h.

86  {
87  return true;
88  }

◆ thread_init()

template<class t_connection_context = net_utils::connection_context_base>
virtual bool epee::net_utils::http::simple_http_connection_handler< t_connection_context >::thread_init ( )
inlinevirtual

Reimplemented in epee::net_utils::http::http_custom_handler< t_connection_context >.

Definition at line 80 of file http_protocol_handler.h.

81  {
82  return true;
83  }

Member Data Documentation

◆ m_conn_context

template<class t_connection_context = net_utils::connection_context_base>
t_connection_context& epee::net_utils::http::simple_http_connection_handler< t_connection_context >::m_conn_context
protected

Definition at line 147 of file http_protocol_handler.h.

◆ m_psnd_hndlr

template<class t_connection_context = net_utils::connection_context_base>
i_service_endpoint* epee::net_utils::http::simple_http_connection_handler< t_connection_context >::m_psnd_hndlr
protected

Definition at line 146 of file http_protocol_handler.h.


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