mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-24 04:46:48 +01:00
22 lines
540 B
C++
22 lines
540 B
C++
#ifndef USER_SESSION_SETUP_MIDDLEWARE_H
|
|
#define USER_SESSION_SETUP_MIDDLEWARE_H
|
|
|
|
#include "core/reference.h"
|
|
#include "core/ustring.h"
|
|
|
|
#include "modules/web/http/web_server_middleware.h"
|
|
|
|
// just session setup
|
|
class UserSessionSetupMiddleware : public WebServerMiddleware {
|
|
GDCLASS(UserSessionSetupMiddleware, WebServerMiddleware);
|
|
|
|
public:
|
|
//returning true means handled, false means continue
|
|
bool on_before_handle_request_main(Ref<WebServerRequest> request);
|
|
|
|
UserSessionSetupMiddleware();
|
|
~UserSessionSetupMiddleware();
|
|
};
|
|
|
|
#endif
|