diff --git a/HTTPHandler.cpp b/HTTPHandler.cpp index f669804..c76c4cc 100644 --- a/HTTPHandler.cpp +++ b/HTTPHandler.cpp @@ -15,11 +15,13 @@ namespace http { switch(mode) { case REQUEST: - httpRequest = new HTTPRequest(request1); + coreutils::Log(coreutils::LOG_DEBUG_2) << "Processing request data... '" << request1.str() << "'"; + + httpRequest = new HTTPRequest(request1); + session->server.commands.grabInput(session, *this); mode = IMF; - break; - + case IMF: httpRequest->parse(request1); if(request == "") { diff --git a/HTTPRequest.cpp b/HTTPRequest.cpp new file mode 100644 index 0000000..c102035 --- /dev/null +++ b/HTTPRequest.cpp @@ -0,0 +1,12 @@ +#include "HTTPRequest.h" +#include "Exception.h" +#include "Log.h" + +namespace http { + +// HTTPRequest::HTTPRequest(coreutils::PString &in) { +// request = coreutils::IMFRequest(in); +// } + +} + diff --git a/HTTPRequest.h b/HTTPRequest.h index 13ef3b4..240092e 100644 --- a/HTTPRequest.h +++ b/HTTPRequest.h @@ -17,8 +17,7 @@ namespace http { message = new IMFMessage(in); } bool parse(coreutils::PString &in) { - message->parse(in); - return true; + return message->parse(in); } coreutils::IMFRequest *request; diff --git a/HTTPServer b/HTTPServer index 0308134..16efe3a 100755 Binary files a/HTTPServer and b/HTTPServer differ diff --git a/docs/images/graphical_concept.png b/docs/images/graphical_concept.png new file mode 100644 index 0000000..8c7ad0d Binary files /dev/null and b/docs/images/graphical_concept.png differ diff --git a/docs/images/transaction_lifecycle.png b/docs/images/transaction_lifecycle.png new file mode 100644 index 0000000..1ee68c5 Binary files /dev/null and b/docs/images/transaction_lifecycle.png differ diff --git a/docs/images/view_component_structure.png b/docs/images/view_component_structure.png new file mode 100644 index 0000000..591df5e Binary files /dev/null and b/docs/images/view_component_structure.png differ diff --git a/main folder.png b/main folder.png new file mode 100644 index 0000000..37363a9 Binary files /dev/null and b/main folder.png differ