Move things around some more

This commit is contained in:
Alex Hultman
2018-09-10 22:14:19 +02:00
parent 03d249ab48
commit 85e99d2059
7 changed files with 11 additions and 8 deletions
+2 -2
View File
@@ -13,11 +13,11 @@ SOURCES += \
uSockets/src/loop.c
HEADERS += \
src/http/HttpRouter.h \
src/new_design/HttpRouter.h \
src/Loop.h \
src/App.h \
src/http/HttpSocket.h \
src/http/HttpParser.h \
src/new_design/HttpParser.h \
src/websocket/libwshandshake.hpp \
src/websocket/WebSocketProtocol.h \
src/websocket/WebSocket.h \
+3 -1
View File
@@ -1,10 +1,12 @@
#ifndef HTTPAPP_H
#define HTTPAPP_H
// todo: move all this logic to HttpContext
#include <type_traits>
#include "Loop.h"
#include "HttpSocket.h"
#include "HttpRouter.h"
#include "../new_design/HttpRouter.h"
#include "websocket/libwshandshake.hpp"
#include "websocket/WebSocket.h"
+1 -1
View File
@@ -2,7 +2,7 @@
#define HTTP_H
#include "Socket.h"
#include "HttpParser.h"
#include "../new_design/HttpParser.h"
#include <cstring>
#include <algorithm>
+2
View File
@@ -48,6 +48,8 @@ public:
// todo: inplace initialize the data struct!
// todo: actually register handlers on the socket context with the behavior of HTTP! (take from HttpApp.h)
return (HttpContext *) us_create_socket_context(loop, sizeof(HttpContextData<SSL>));
}
+3 -4
View File
@@ -1,10 +1,9 @@
#ifndef HTTPCONTEXTDATA_H
#define HTTPCONTEXTDATA_H
// this means we will depend on HttpRouter and HttpParser here!
#include "../http/HttpParser.h"
#include "../http/HttpRouter.h"
// we depend on these
#include "HttpParser.h"
#include "HttpRouter.h"
#include <functional>