mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-24 12:47:12 +01:00
27 lines
562 B
C++
27 lines
562 B
C++
#ifndef WEB_SERVRER_MIDDLEWARE_H
|
|
#define WEB_SERVRER_MIDDLEWARE_H
|
|
|
|
#include "core/string/ustring.h"
|
|
|
|
#include "core/object/resource.h"
|
|
|
|
class WebServerRequest;
|
|
|
|
class WebServerMiddleware : public Resource {
|
|
GDCLASS(WebServerMiddleware, Resource);
|
|
|
|
public:
|
|
//returnring true means handled, false, means continue
|
|
bool on_before_handle_request_main(Ref<WebServerRequest> request);
|
|
|
|
virtual bool _on_before_handle_request_main(Ref<WebServerRequest> request);
|
|
|
|
WebServerMiddleware();
|
|
~WebServerMiddleware();
|
|
|
|
protected:
|
|
static void _bind_methods();
|
|
};
|
|
|
|
#endif
|