moved HTTPParser and writer to the simple server's directory.

This commit is contained in:
Relintai 2022-06-30 23:18:45 +02:00
parent 08bb253a5c
commit 7455fc9dd5
9 changed files with 11 additions and 11 deletions

View File

@ -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':

View File

@ -26,8 +26,9 @@ def get_doc_classes():
"WebServerCookie",
"WebServerMiddleware",
"WebServerRequest",
"HTTPParser",
"HTTPWriter",
#"HTTPParser",
#"HTTPWriter",
"HTMLBuilder",
"HTMLTag",

View File

@ -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;

View File

@ -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>();

View File

@ -49,6 +49,7 @@ public:
void poll();
HTTPServerSimple();
~HTTPServerSimple();
private:
Ref<TCP_Server> server;

View File

@ -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() {