diff options
author | madmaxoft <github@xoft.cz> | 2013-10-04 13:07:57 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-10-04 13:13:34 +0200 |
commit | 1012fd82fda9e9bc75d2308a3c68cb3b3738bf1b (patch) | |
tree | c03e55ed3e05de4d771510d9249a4bbdef1bf26e /source/HTTPServer/HTTPServer.cpp | |
parent | Fixed MultiPartParser's boundary parsing. (diff) | |
download | cuberite-1012fd82fda9e9bc75d2308a3c68cb3b3738bf1b.tar cuberite-1012fd82fda9e9bc75d2308a3c68cb3b3738bf1b.tar.gz cuberite-1012fd82fda9e9bc75d2308a3c68cb3b3738bf1b.tar.bz2 cuberite-1012fd82fda9e9bc75d2308a3c68cb3b3738bf1b.tar.lz cuberite-1012fd82fda9e9bc75d2308a3c68cb3b3738bf1b.tar.xz cuberite-1012fd82fda9e9bc75d2308a3c68cb3b3738bf1b.tar.zst cuberite-1012fd82fda9e9bc75d2308a3c68cb3b3738bf1b.zip |
Diffstat (limited to 'source/HTTPServer/HTTPServer.cpp')
-rw-r--r-- | source/HTTPServer/HTTPServer.cpp | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/source/HTTPServer/HTTPServer.cpp b/source/HTTPServer/HTTPServer.cpp index ac21acb24..4102d1047 100644 --- a/source/HTTPServer/HTTPServer.cpp +++ b/source/HTTPServer/HTTPServer.cpp @@ -24,13 +24,14 @@ class cDebugCallbacks : - public cHTTPServer::cCallbacks + public cHTTPServer::cCallbacks, + protected cHTTPFormParser::cCallbacks { virtual void OnRequestBegun(cHTTPConnection & a_Connection, cHTTPRequest & a_Request) override { if (cHTTPFormParser::HasFormData(a_Request)) { - a_Request.SetUserData(new cHTTPFormParser(a_Request)); + a_Request.SetUserData(new cHTTPFormParser(a_Request, *this)); } } @@ -79,6 +80,23 @@ class cDebugCallbacks : } + virtual void OnFileStart(cHTTPFormParser & a_Parser, const AString & a_FileName) override + { + // TODO + } + + + virtual void OnFileData(cHTTPFormParser & a_Parser, const char * a_Data, int a_Size) override + { + // TODO + } + + + virtual void OnFileEnd(cHTTPFormParser & a_Parser) override + { + // TODO + } + } g_DebugCallbacks; |