|
CCF
|
#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 session_id) | |
| ~ThreadedSession () override | |
| void | handle_incoming_data (std::span< const uint8_t > data) override |
| void | send_data (std::vector< uint8_t > &&data) override |
| void | close_session () override |
Public Member Functions inherited from ccf::Session | |
| virtual | ~Session ()=default |
Public Member Functions inherited from ccf::ClientSession | |
| virtual | ~ClientSession ()=default |
| ClientSession (int64_t client_session_id, ringbuffer::AbstractWriterFactory &writer_factory) | |
| virtual void | send_request (::http::Request &&request)=0 |
Public Member Functions inherited from http::ResponseProcessor | |
| virtual | ~ResponseProcessor ()=default |
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)> |
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_thread () 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 |
|
inline |
|
inlineoverridevirtual |
Reimplemented from ccf::ClientSession.
|
inlineoverridevirtual |
Implements http::ResponseProcessor.
|
inlineoverridevirtual |
Implements ccf::UnencryptedSession.
|
inlineoverride |