Struct GatewayPlugin::PluginRoute

Nested Relationships

This struct is a nested type of Class GatewayPlugin.

Struct Documentation

struct PluginRoute

Describes a single REST route registered by a plugin.

Public Members

std::string method

HTTP method (“GET”, “POST”, “PUT”, “DELETE”)

std::string pattern

Regex pattern relative to api_prefix.

std::function<void(const PluginRequest&, PluginResponse&)> handler