CCF
|
#include <http_session.h>
Inherits ccf::EncryptedSession, ccf::ClientSession, and http::ResponseProcessor.
Public Member Functions | |
HTTPClientSession (::tcp::ConnID 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 | 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 |
![]() | |
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 |
![]() | |
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 |
![]() | |
virtual | ~Session ()=default |
![]() | |
ClientSession (int64_t client_session_id, ringbuffer::AbstractWriterFactory &writer_factory) | |
virtual void | send_request (::http::Request &&request)=0 |
Additional Inherited Members | |
![]() | |
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 void | handle_incoming_data_cb (std::unique_ptr<::threading::Tmsg< SendRecvMsg > > msg) |
static void | send_data_cb (std::unique_ptr<::threading::Tmsg< SendRecvMsg > > msg) |
![]() | |
EncryptedSession (::tcp::ConnID session_id_, ringbuffer::AbstractWriterFactory &writer_factory, std::unique_ptr< ccf::tls::Context > ctx) | |
![]() | |
std::shared_ptr< ccf::TLSSession > | tls_io |
::tcp::ConnID | session_id |
![]() | |
HandleDataCallback | handle_data_cb |
HandleErrorCallback | handle_error_cb |
|
inline |
|
inlineoverridevirtual |
Reimplemented from ccf::ClientSession.
|
inlineoverridevirtual |
Implements http::ResponseProcessor.
|
inlineoverridevirtual |
Implements ccf::EncryptedSession.
|
inlineoverride |