2022-06-25 01:55:54 +02:00
|
|
|
|
2022-06-26 19:43:31 +02:00
|
|
|
#include "web_server_middleware.h"
|
2022-06-25 01:55:54 +02:00
|
|
|
|
2022-06-26 19:43:31 +02:00
|
|
|
#include "web_server_request.h"
|
2022-06-25 01:55:54 +02:00
|
|
|
|
2022-06-26 19:43:31 +02:00
|
|
|
bool WebServerMiddleware::on_before_handle_request_main(Ref<WebServerRequest> request) {
|
|
|
|
return call("_on_before_handle_request_main", request);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool WebServerMiddleware::_on_before_handle_request_main(Ref<WebServerRequest> request) {
|
2022-06-25 01:55:54 +02:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-06-26 19:43:31 +02:00
|
|
|
WebServerMiddleware::WebServerMiddleware() {
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-26 15:00:25 +02:00
|
|
|
WebServerMiddleware::~WebServerMiddleware() {
|
|
|
|
}
|
2022-06-26 19:43:31 +02:00
|
|
|
|
|
|
|
void WebServerMiddleware::_bind_methods() {
|
|
|
|
BIND_VMETHOD(MethodInfo("_on_before_handle_request_main", PropertyInfo(Variant::OBJECT, "request", PROPERTY_HINT_RESOURCE_TYPE, "WebServerRequest")));
|
|
|
|
|
|
|
|
ClassDB::bind_method(D_METHOD("on_before_handle_request_main", "request"), &WebServerMiddleware::on_before_handle_request_main);
|
|
|
|
|
|
|
|
ClassDB::bind_method(D_METHOD("_on_before_handle_request_main", "request"), &WebServerMiddleware::_on_before_handle_request_main);
|
|
|
|
}
|