CCF
Loading...
Searching...
No Matches
Public Member Functions | List of all members
http::UnencryptedHTTPClientSession Class Reference

#include <http_session.h>

Inherits ccf::UnencryptedSession, ccf::ClientSession, and http::ResponseProcessor.

Public Member Functions

 UnencryptedHTTPClientSession (::tcp::ConnID session_id_, ringbuffer::AbstractWriterFactory &writer_factory)
 
bool parse (std::span< const uint8_t > data) override
 
void send_request (http::Request &&request) override
 
void connect (const std::string &hostname, const std::string &service, const HandleDataCallback f, const HandleErrorCallback e) override
 
void handle_response (ccf::http_status status, ccf::http::HeaderMap &&headers, std::vector< uint8_t > &&body) override
 
- Public Member Functions inherited from ccf::ThreadedSession
 ThreadedSession (int64_t thread_affinity)
 
void handle_incoming_data (std::span< const uint8_t > data) override
 
void send_data (std::span< const uint8_t > data) override
 
- Public Member Functions inherited from ccf::Session
virtual ~Session ()=default
 
- Public Member Functions inherited from ccf::ClientSession
 ClientSession (int64_t client_session_id, ringbuffer::AbstractWriterFactory &writer_factory)
 
virtual void send_request (::http::Request &&request)=0
 

Additional Inherited Members

- Public Types inherited from ccf::ClientSession
using HandleDataCallback = std::function< void(ccf::http_status status, http::HeaderMap &&headers, std::vector< uint8_t > &&body)>
 
using HandleErrorCallback = std::function< void(const std::string &error_msg)>
 
- Static Public Member Functions inherited from ccf::ThreadedSession
static void handle_incoming_data_cb (std::unique_ptr<::threading::Tmsg< SendRecvMsg > > msg)
 
static void send_data_cb (std::unique_ptr<::threading::Tmsg< SendRecvMsg > > msg)
 
- Protected Member Functions inherited from ccf::UnencryptedSession
 UnencryptedSession (::tcp::ConnID session_id_, ringbuffer::AbstractWriterFactory &writer_factory_)
 
void send_data_thread (std::vector< uint8_t > &&data) override
 
void close_session () override
 
void handle_incoming_data_thread (std::vector< uint8_t > &&data) override
 
- Protected Attributes inherited from ccf::UnencryptedSession
::tcp::ConnID session_id
 
ringbuffer::WriterPtr to_host
 
- Protected Attributes inherited from ccf::ClientSession
HandleDataCallback handle_data_cb
 
HandleErrorCallback handle_error_cb
 

Constructor & Destructor Documentation

◆ UnencryptedHTTPClientSession()

http::UnencryptedHTTPClientSession::UnencryptedHTTPClientSession ( ::tcp::ConnID  session_id_,
ringbuffer::AbstractWriterFactory writer_factory 
)
inline

Member Function Documentation

◆ connect()

void http::UnencryptedHTTPClientSession::connect ( const std::string &  hostname,
const std::string &  service,
const HandleDataCallback  f,
const HandleErrorCallback  e 
)
inlineoverridevirtual

Reimplemented from ccf::ClientSession.

◆ handle_response()

void http::UnencryptedHTTPClientSession::handle_response ( ccf::http_status  status,
ccf::http::HeaderMap &&  headers,
std::vector< uint8_t > &&  body 
)
inlineoverridevirtual

◆ parse()

bool http::UnencryptedHTTPClientSession::parse ( std::span< const uint8_t >  data)
inlineoverridevirtual

◆ send_request()

void http::UnencryptedHTTPClientSession::send_request ( http::Request &&  request)
inlineoverride

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