mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-24 12:47:12 +01:00
moved HTTPParser and writer to the simple server's directory.
This commit is contained in:
parent
08bb253a5c
commit
7455fc9dd5
@ -22,14 +22,14 @@ sources = [
|
||||
"http/web_server_middleware.cpp",
|
||||
"http/web_server_request.cpp",
|
||||
|
||||
"http/http_parser.cpp",
|
||||
"http/http_writer.cpp",
|
||||
|
||||
"html/html_builder_bind.cpp",
|
||||
|
||||
"http_server_simple/http_server_simple.cpp",
|
||||
"http_server_simple/web_server_simple.cpp",
|
||||
"http_server_simple/simple_web_server_request.cpp",
|
||||
"http_server_simple/http_parser.cpp",
|
||||
"http_server_simple/http_writer.cpp",
|
||||
]
|
||||
|
||||
if ARGUMENTS.get('custom_modules_shared', 'no') == 'yes':
|
||||
|
@ -26,8 +26,9 @@ def get_doc_classes():
|
||||
"WebServerCookie",
|
||||
"WebServerMiddleware",
|
||||
"WebServerRequest",
|
||||
"HTTPParser",
|
||||
"HTTPWriter",
|
||||
|
||||
#"HTTPParser",
|
||||
#"HTTPWriter",
|
||||
|
||||
"HTMLBuilder",
|
||||
"HTMLTag",
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "http_parser.h"
|
||||
|
||||
#include "web_server_request.h"
|
||||
#include "../http/web_server_request.h"
|
||||
|
||||
Ref<WebServerRequest> HTTPParser::get_request() {
|
||||
return _request;
|
@ -30,7 +30,7 @@
|
||||
|
||||
#include "http_server_simple.h"
|
||||
|
||||
#include "../http/http_parser.h"
|
||||
#include "http_parser.h"
|
||||
#include "simple_web_server_request.h"
|
||||
|
||||
void HTTPServerSimple::stop() {
|
||||
@ -230,6 +230,9 @@ HTTPServerSimple::HTTPServerSimple() {
|
||||
stop();
|
||||
}
|
||||
|
||||
HTTPServerSimple::~HTTPServerSimple() {
|
||||
}
|
||||
|
||||
void HTTPServerSimple::_clear_client() {
|
||||
peer = Ref<StreamPeer>();
|
||||
ssl = Ref<StreamPeerSSL>();
|
||||
|
@ -49,6 +49,7 @@ public:
|
||||
void poll();
|
||||
|
||||
HTTPServerSimple();
|
||||
~HTTPServerSimple();
|
||||
|
||||
private:
|
||||
Ref<TCP_Server> server;
|
||||
|
@ -29,11 +29,9 @@ SOFTWARE.
|
||||
#include "html/html_builder_bind.h"
|
||||
|
||||
#include "http/csrf_token.h"
|
||||
#include "http/http_parser.h"
|
||||
#include "http/http_server_enums.h"
|
||||
#include "http/http_session.h"
|
||||
#include "http/http_session_manager.h"
|
||||
#include "http/http_writer.h"
|
||||
#include "http/web_node.h"
|
||||
#include "http/web_permission.h"
|
||||
#include "http/web_root.h"
|
||||
@ -63,9 +61,6 @@ void register_web_types() {
|
||||
ClassDB::register_class<WebServerCookie>();
|
||||
ClassDB::register_class<WebServerMiddleware>();
|
||||
ClassDB::register_class<WebServerRequest>();
|
||||
|
||||
ClassDB::register_class<HTTPParser>();
|
||||
ClassDB::register_class<HTTPWriter>();
|
||||
}
|
||||
|
||||
void unregister_web_types() {
|
||||
|
Loading…
Reference in New Issue
Block a user