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: EthernetInterface mbed-rpc mbed-rtos mbed
Fork of HTTP-Server by
RequestHandler.h
00001 #ifndef REQUEST_HANDLER 00002 #define REQUEST_HANDLER 00003 00004 #include "RPCCommand.h" 00005 00006 class RequestHandler 00007 { 00008 public : 00009 00010 virtual void handle(const RPCCommand& cmd, char* reply) = 0; 00011 }; 00012 00013 class GetRequestHandler : public RequestHandler 00014 { 00015 public : 00016 00017 virtual void handle(const RPCCommand& cmd, char* reply); 00018 }; 00019 00020 class PutRequestHandler : public RequestHandler 00021 { 00022 public : 00023 00024 virtual void handle(const RPCCommand& cmd, char* reply); 00025 00026 }; 00027 00028 00029 class DeleteRequestHandler : public RequestHandler 00030 { 00031 public : 00032 00033 virtual void handle(const RPCCommand& cmd, char* reply); 00034 00035 }; 00036 00037 class ComplexRequestHandler : public RequestHandler 00038 { 00039 public : 00040 00041 virtual void handle(const RPCCommand& cmd, char* reply); 00042 00043 private : 00044 00045 GetRequestHandler getHandler; 00046 PutRequestHandler putHandler; 00047 DeleteRequestHandler deleteHandler; 00048 }; 00049 00050 #endif 00051
Generated on Thu Jul 14 2022 01:35:56 by
1.7.2
