HTTPServer

Dependents:   HTTPServerCustom

Fork of HTTPServer by Donatien Garnier

Revision:
1:56636f5bf71a
Parent:
0:52230c56755e
diff -r 52230c56755e -r 56636f5bf71a LPC1768/services/http/server/impl/FSHandler.h
--- a/LPC1768/services/http/server/impl/FSHandler.h	Fri Jun 11 16:26:10 2010 +0000
+++ b/LPC1768/services/http/server/impl/FSHandler.h	Mon Jun 14 10:22:58 2010 +0000
@@ -27,11 +27,19 @@
 #include "../HTTPRequestHandler.h"
 #include "mbed.h"
 
+#include <map>
+using std::map;
+
+#include <string>
+using std::string;
+
 class FSHandler : public HTTPRequestHandler
 {
 public:
   FSHandler(const char* rootPath, const char* path, TCPSocket* pTCPSocket);
   virtual ~FSHandler();
+  
+  static void mount(const string& fsPath, const string& rootPath);
 
 //protected:
   static inline HTTPRequestHandler* inst(const char* rootPath, const char* path, TCPSocket* pTCPSocket) { return new FSHandler(rootPath, path, pTCPSocket); } //if we ever could do static virtual functions, this would be one
@@ -47,6 +55,7 @@
 private:
   FILE* m_fp;
   bool m_err404;
+  static map<string,string> m_lFsPath;
 };
 
 #endif