Continued work.
This commit is contained in:
parent
8d971c1545
commit
1e6f988ee9
@ -15,10 +15,12 @@ namespace http {
|
|||||||
|
|
||||||
switch(mode) {
|
switch(mode) {
|
||||||
case REQUEST:
|
case REQUEST:
|
||||||
|
coreutils::Log(coreutils::LOG_DEBUG_2) << "Processing request data... '" << request1.str() << "'";
|
||||||
|
|
||||||
httpRequest = new HTTPRequest(request1);
|
httpRequest = new HTTPRequest(request1);
|
||||||
|
|
||||||
session->server.commands.grabInput(session, *this);
|
session->server.commands.grabInput(session, *this);
|
||||||
mode = IMF;
|
mode = IMF;
|
||||||
break;
|
|
||||||
|
|
||||||
case IMF:
|
case IMF:
|
||||||
httpRequest->parse(request1);
|
httpRequest->parse(request1);
|
||||||
|
12
HTTPRequest.cpp
Normal file
12
HTTPRequest.cpp
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#include "HTTPRequest.h"
|
||||||
|
#include "Exception.h"
|
||||||
|
#include "Log.h"
|
||||||
|
|
||||||
|
namespace http {
|
||||||
|
|
||||||
|
// HTTPRequest::HTTPRequest(coreutils::PString &in) {
|
||||||
|
// request = coreutils::IMFRequest(in);
|
||||||
|
// }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -17,8 +17,7 @@ namespace http {
|
|||||||
message = new IMFMessage(in);
|
message = new IMFMessage(in);
|
||||||
}
|
}
|
||||||
bool parse(coreutils::PString &in) {
|
bool parse(coreutils::PString &in) {
|
||||||
message->parse(in);
|
return message->parse(in);
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
coreutils::IMFRequest *request;
|
coreutils::IMFRequest *request;
|
||||||
|
BIN
HTTPServer
BIN
HTTPServer
Binary file not shown.
BIN
docs/images/graphical_concept.png
Normal file
BIN
docs/images/graphical_concept.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 74 KiB |
BIN
docs/images/transaction_lifecycle.png
Normal file
BIN
docs/images/transaction_lifecycle.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 42 KiB |
BIN
docs/images/view_component_structure.png
Normal file
BIN
docs/images/view_component_structure.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
BIN
main folder.png
Normal file
BIN
main folder.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.4 KiB |
Loading…
x
Reference in New Issue
Block a user