mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-10 00:52:11 +01:00
Removed HandlerInstance.
This commit is contained in:
parent
dff3156138
commit
159c784689
@ -1,13 +0,0 @@
|
||||
#include "handler_instance.h"
|
||||
|
||||
#include "request.h"
|
||||
#include "core/object.h"
|
||||
|
||||
HandlerInstance::HandlerInstance() {
|
||||
instance = nullptr;
|
||||
}
|
||||
|
||||
HandlerInstance::HandlerInstance(std::function<void(Object *, Request *)> p_handler_func, Object *p_instance) {
|
||||
handler_func = p_handler_func;
|
||||
instance = p_instance;
|
||||
}
|
@ -1,17 +0,0 @@
|
||||
#ifndef HANDLER_INSTANCE_H
|
||||
#define HANDLER_INSTANCE_H
|
||||
|
||||
#include <functional>
|
||||
|
||||
class Object;
|
||||
class Request;
|
||||
|
||||
struct HandlerInstance {
|
||||
std::function<void(Object *, Request *)> handler_func;
|
||||
Object *instance;
|
||||
|
||||
HandlerInstance();
|
||||
HandlerInstance(std::function<void(Object *, Request *)> p_handler_func, Object *p_instance = nullptr);
|
||||
};
|
||||
|
||||
#endif
|
@ -11,8 +11,6 @@
|
||||
#include "core/object.h"
|
||||
#include "core/reference.h"
|
||||
|
||||
#include "handler_instance.h"
|
||||
|
||||
#include "http_enums.h"
|
||||
|
||||
class WebServer;
|
||||
|
@ -6,11 +6,9 @@
|
||||
#include <functional>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "web_router_node.h"
|
||||
|
||||
#include "handler_instance.h"
|
||||
#include "middleware.h"
|
||||
|
||||
class Request;
|
||||
@ -21,6 +19,8 @@ class Request;
|
||||
|
||||
// Update the rest of the modules to the new systems
|
||||
|
||||
//remove std::strings
|
||||
|
||||
class WebRoot : public WebRouterNode {
|
||||
RCPP_OBJECT(WebRoot, WebRouterNode);
|
||||
|
||||
|
@ -12,8 +12,6 @@
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
|
||||
#include "core/http/handler_instance.h"
|
||||
|
||||
#include <trantor/net/InetAddress.h>
|
||||
#include <trantor/net/Resolver.h>
|
||||
#include <trantor/utils/Logger.h>
|
||||
|
@ -11,8 +11,6 @@
|
||||
#include "http/HttpRequestImpl.h"
|
||||
#include "http/HttpResponse.h"
|
||||
|
||||
#include "core/http/handler_instance.h"
|
||||
|
||||
//using namespace drogon;
|
||||
|
||||
class DrogonWebServer;
|
||||
|
@ -6,8 +6,6 @@
|
||||
|
||||
#include "core/file_cache.h"
|
||||
|
||||
#include "core/http/handler_instance.h"
|
||||
|
||||
#include "core/database/database_manager.h"
|
||||
|
||||
#include "core/html/html_builder.h"
|
||||
|
Loading…
Reference in New Issue
Block a user