Dependents: SimpleLCDClock readCard2Twitter_http AnalogClock_StepperMotor_NTP ServoCamV1
services/http/server/impl/FSHandler.h
- Committer:
- donatien
- Date:
- 2010-05-24
- Revision:
- 0:a2dd0ba6cd2d
- Child:
- 1:7043cc0db03c
File content as of revision 0:a2dd0ba6cd2d:
#ifndef FS_HANDLER_H #define FS_HANDLER_H #include "../HttpRequestHandler.h" #include "mbed.h" class FSHandler : public HttpRequestHandler { public: FSHandler(const char* rootPath, const char* path, TcpSocket* pTcpSocket); virtual ~FSHandler(); //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 virtual void doGet(); virtual void doPost(); virtual void doHead(); virtual void onReadable(); //Data has been read virtual void onWriteable(); //Data has been written & buf is free virtual void onClose(); //Connection is closing private: FILE* m_fp; bool m_err404; }; #endif