Class ClHttp

Nested Relationships

Nested Types

Inheritance Relationships

Base Type

  • public smacc2::ISmaccClient

Class Documentation

class ClHttp : public smacc2::ISmaccClient

Public Types

enum class kHttpRequestMethod

Values:

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

Public Functions

template<typename T>
inline boost::signals2::connection onResponseReceived(void (T::* callback)(const TResponse&), T *object)
explicit ClHttp(const std::string &server, const int &timeout = 1500)
virtual ~ClHttp()
void onInitialize() override
void makeRequest(const kHttpRequestMethod http_method, const std::string &path = "/", const std::string &body = "", const std::unordered_map<std::string, std::string> &headers = {})