|
CCF
|
#include <http_session.h>
Inherits http::HTTPSession, 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 (http_status status, ccf::http::HeaderMap &&headers, std::vector< uint8_t > &&body) override |
Public Member Functions inherited from http::HTTPSession | |
| 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 |
Additional Inherited Members | |
Public Types inherited from ccf::ClientSession | |
| using | HandleDataCallback = std::function< void(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 http::HTTPSession | |
| HTTPSession (::tcp::ConnID session_id_, ringbuffer::AbstractWriterFactory &writer_factory, std::unique_ptr< ccf::tls::Context > ctx, const std::shared_ptr< ErrorReporter > &error_reporter=nullptr) | |
Protected Attributes inherited from http::HTTPSession | |
| std::shared_ptr< ccf::TLSSession > | tls_io |
| std::shared_ptr< ErrorReporter > | error_reporter |
| ::tcp::ConnID | session_id |
Protected Attributes inherited from ccf::ClientSession | |
| HandleDataCallback | handle_data_cb |
| HandleErrorCallback | handle_error_cb |
|
inline |
|
inlineoverridevirtual |
Reimplemented from ccf::ClientSession.
|
inlineoverridevirtual |
Implements http::ResponseProcessor.
|
inlineoverridevirtual |
Implements http::HTTPSession.
|
inlineoverride |