Also added a HttpWriter.

This commit is contained in:
Relintai 2022-06-30 21:43:16 +02:00
parent 228cfca0eb
commit ddf3dae42b
5 changed files with 29 additions and 1 deletions

View File

@ -23,13 +23,13 @@ sources = [
"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",
]
if ARGUMENTS.get('custom_modules_shared', 'no') == 'yes':

View File

@ -27,6 +27,7 @@ def get_doc_classes():
"WebServerMiddleware",
"WebServerRequest",
"HTTPParser",
"HTTPWriter",
"HTMLBuilder",
"HTMLTag",

View File

@ -0,0 +1,10 @@
#include "http_writer.h"
HTTPWriter::HTTPWriter() {
}
HTTPWriter::~HTTPWriter() {
}
void HTTPWriter::_bind_methods() {
}

View File

@ -0,0 +1,15 @@
#ifndef HTTP_WRITER_H
#define HTTP_WRITER_H
#include "core/reference.h"
class HTTPWriter : public Reference {
public:
HTTPWriter();
~HTTPWriter();
protected:
static void _bind_methods();
};
#endif

View File

@ -33,6 +33,7 @@ SOFTWARE.
#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"
@ -64,6 +65,7 @@ void register_web_types() {
ClassDB::register_class<WebServerRequest>();
ClassDB::register_class<HTTPParser>();
ClassDB::register_class<HTTPWriter>();
}
void unregister_web_types() {