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.
Dependencies: NySNICInterface mbed-rtos mbed
Fork of RESTServerSample by
Diff: RequestHandler.h
- Revision:
- 0:998e2e00df0c
diff -r 000000000000 -r 998e2e00df0c RequestHandler.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/RequestHandler.h Tue Feb 10 12:15:47 2015 +0000
@@ -0,0 +1,45 @@
+#ifndef REQUEST_HANDLER
+#define REQUEST_HANDLER
+
+#include "RPCObject.h"
+
+
+
+class RequestHandler
+{
+ public :
+
+ virtual int handle(RPCObject& cmd, char* reply) = 0;
+
+ protected :
+};
+
+class GetRequestHandler : public RequestHandler
+{
+ public :
+
+ virtual int handle(RPCObject& cmd, char* reply);
+
+};
+
+class PostRequestHandler : public RequestHandler
+{
+ public :
+
+ virtual int handle(RPCObject& cmd, char* reply);
+
+};
+
+
+class DeleteRequestHandler : public RequestHandler
+{
+ public :
+
+ virtual int handle(RPCObject& cmd, char* reply);
+
+};
+
+
+
+#endif
+

