struct EngineJSONRegistrationServer::RequestHandler

Struct to handle REST calls.

struct RequestHandler: public Handler {
    // construction

    RequestHandler(EngineJSONRegistrationServer* pServer);

    // methods

    HTTP_PROTOTYPE(RequestHandler);

    void onRequest(
        const Pistache::Http::Request& req,
        Pistache::Http::ResponseWriter response
    );
};