pandemonium_engine/modules/web/http/web_server_middleware.h

27 lines
548 B
C++
Raw Normal View History

#ifndef WEB_SERVRER_MIDDLEWARE_H
#define WEB_SERVRER_MIDDLEWARE_H
#include "core/ustring.h"
#include "core/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);
2022-06-26 15:00:25 +02:00
WebServerMiddleware();
~WebServerMiddleware();
protected:
static void _bind_methods();
};
2022-06-26 15:00:25 +02:00
#endif