Class PluginResponse

Class Documentation

class PluginResponse

Thin wrapper over an HTTP response. Hides the underlying HTTP library from plugin code. Constructed by the gateway per-request; plugins receive it by reference.

Public Functions

explicit PluginResponse(void *impl)

Construct from opaque HTTP response pointer (gateway-internal).

void send_json(const nlohmann::json &data)

Send a JSON success response (HTTP 200).

void send_error(int status, const std::string &error_code, const std::string &message, const nlohmann::json &parameters = {})

Send a SOVD-compliant error response.