mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-11-22 17:07:20 +01:00
Also added a HttpWriter.
This commit is contained in:
parent
228cfca0eb
commit
ddf3dae42b
@ -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':
|
||||
|
@ -27,6 +27,7 @@ def get_doc_classes():
|
||||
"WebServerMiddleware",
|
||||
"WebServerRequest",
|
||||
"HTTPParser",
|
||||
"HTTPWriter",
|
||||
|
||||
"HTMLBuilder",
|
||||
"HTMLTag",
|
||||
|
10
modules/web/http/http_writer.cpp
Normal file
10
modules/web/http/http_writer.cpp
Normal file
@ -0,0 +1,10 @@
|
||||
#include "http_writer.h"
|
||||
|
||||
HTTPWriter::HTTPWriter() {
|
||||
}
|
||||
|
||||
HTTPWriter::~HTTPWriter() {
|
||||
}
|
||||
|
||||
void HTTPWriter::_bind_methods() {
|
||||
}
|
15
modules/web/http/http_writer.h
Normal file
15
modules/web/http/http_writer.h
Normal 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
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user