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

#include <http2_session.h>

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

Public Member Functions

 HTTP2ClientSession (int64_t session_id_, ringbuffer::AbstractWriterFactory &writer_factory, std::unique_ptr< ccf::tls::Context > ctx)
 
bool parse (std::span< const uint8_t > data) override
 
void send_request (http::Request &&request) override
 
void handle_response (ccf::http_status status, ccf::http::HeaderMap &&headers, std::vector< uint8_t > &&body) override
 
- Public Member Functions inherited from ccf::EncryptedSession
void send_data (std::span< const uint8_t > data) override
 
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
 
- 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
 
virtual void connect (const std::string &hostname, const std::string &service, const HandleDataCallback f, const HandleErrorCallback e=nullptr)
 

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::EncryptedSession
 EncryptedSession (::tcp::ConnID session_id_, ringbuffer::AbstractWriterFactory &writer_factory, std::unique_ptr< ccf::tls::Context > ctx)
 
- Protected Attributes inherited from ccf::EncryptedSession
std::shared_ptr< ccf::TLSSessiontls_io
 
::tcp::ConnID session_id
 
- Protected Attributes inherited from ccf::ClientSession
HandleDataCallback handle_data_cb
 
HandleErrorCallback handle_error_cb
 

Constructor & Destructor Documentation

◆ HTTP2ClientSession()

http::HTTP2ClientSession::HTTP2ClientSession ( int64_t  session_id_,
ringbuffer::AbstractWriterFactory writer_factory,
std::unique_ptr< ccf::tls::Context ctx 
)
inline

Member Function Documentation

◆ handle_response()

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

◆ parse()

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

Implements ccf::EncryptedSession.

◆ send_request()

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

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