diff --git a/modules/web/SCsub b/modules/web/SCsub index a5478379d..3bba18f76 100644 --- a/modules/web/SCsub +++ b/modules/web/SCsub @@ -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': diff --git a/modules/web/config.py b/modules/web/config.py index b2431af29..150203292 100644 --- a/modules/web/config.py +++ b/modules/web/config.py @@ -27,6 +27,7 @@ def get_doc_classes(): "WebServerMiddleware", "WebServerRequest", "HTTPParser", + "HTTPWriter", "HTMLBuilder", "HTMLTag", diff --git a/modules/web/http/http_writer.cpp b/modules/web/http/http_writer.cpp new file mode 100644 index 000000000..b016cbea0 --- /dev/null +++ b/modules/web/http/http_writer.cpp @@ -0,0 +1,10 @@ +#include "http_writer.h" + +HTTPWriter::HTTPWriter() { +} + +HTTPWriter::~HTTPWriter() { +} + +void HTTPWriter::_bind_methods() { +} diff --git a/modules/web/http/http_writer.h b/modules/web/http/http_writer.h new file mode 100644 index 000000000..1b7427e9b --- /dev/null +++ b/modules/web/http/http_writer.h @@ -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 diff --git a/modules/web/register_types.cpp b/modules/web/register_types.cpp index 09ed73224..7024b8cfa 100644 --- a/modules/web/register_types.cpp +++ b/modules/web/register_types.cpp @@ -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(); ClassDB::register_class(); + ClassDB::register_class(); } void unregister_web_types() {