pandemonium_engine/modules/users/web/middleware/user_session_setup_middleware.h

22 lines
599 B
C++

#ifndef USER_SESSION_SETUP_WEB_SERVER_MIDDLEWARE_H
#define USER_SESSION_SETUP_WEB_SERVER_MIDDLEWARE_H
#include "core/reference.h"
#include "core/ustring.h"
#include "modules/web/http/web_server_middleware.h"
// just session setup
class UserSessionSetupWebServerMiddleware : public WebServerMiddleware {
GDCLASS(UserSessionSetupWebServerMiddleware, WebServerMiddleware);
public:
//returning true means handled, false means continue
bool _on_before_handle_request_main(Ref<WebServerRequest> request);
UserSessionSetupWebServerMiddleware();
~UserSessionSetupWebServerMiddleware();
};
#endif