Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of HTTPServer by
Diff: LPC1768/services/http/server/impl/FSHandler.h
- 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
