Class ClHttp

Inheritance Relationships

Base Type

  • public smacc2::ISmaccClient

Class Documentation

class ClHttp : public smacc2::ISmaccClient

HTTP/HTTPS client with pure component-based architecture.

This client acts as a minimal orchestrator that creates and configures three specialized components during initialization. All HTTP functionality is delegated to components.

Components created:

Behaviors should access CpHttpRequestExecutor directly via requiresComponent() rather than using the client interface.

Public Types

enum class kHttpRequestMethod

Values:

enumerator GET
enumerator POST
enumerator PUT
using TResponse = http_session_base::TResponse

Public Functions

explicit ClHttp(const std::string &server, const int &timeout = 1500)
virtual ~ClHttp()
void onInitialize() override
template<typename TOrthogonal, typename TClient>
inline void onComponentInitialization()