CCF
|
#include <client_session.h>
Inherited by http::HTTP2ClientSession, http::HTTPClientSession, and http::UnencryptedHTTPClientSession.
Public Types | |
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)> |
Public Member Functions | |
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) |
Protected Attributes | |
HandleDataCallback | handle_data_cb |
HandleErrorCallback | handle_error_cb |
using ccf::ClientSession::HandleDataCallback = std::function<void( ccf::http_status status, http::HeaderMap&& headers, std::vector<uint8_t>&& body)> |
using ccf::ClientSession::HandleErrorCallback = std::function<void(const std::string& error_msg)> |
|
inline |
|
inlinevirtual |
Reimplemented in http::HTTPClientSession, and http::UnencryptedHTTPClientSession.
|
pure virtual |
|
protected |
|
protected |