![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
WIZwiki-REST-io ver.2 Add POST Method
Dependencies: MbedJSONValue_copy WIZnetInterface mbed
Fork of WIZwiki-REST_mc by
Diff: RequestHandler.h
- Revision:
- 4:0b5a199e91f3
- Parent:
- 2:ca36ecca24c2
diff -r 31ffbba7e8e9 -r 0b5a199e91f3 RequestHandler.h --- a/RequestHandler.h Tue May 03 02:21:56 2016 +0000 +++ b/RequestHandler.h Tue May 31 10:31:30 2016 +0000 @@ -3,34 +3,44 @@ //#define DEBUG_HTTPREQ +extern void debug_info(); + class RequestHandler { public : - - virtual void handle(char* rest_uri, char* reply) = 0; + virtual void handle(char* rest_uri, char* req_data, char* reply) = 0; }; class GetRequestHandler : public RequestHandler { public : - - virtual void handle(char* rest_uri, char* reply); + virtual void handle(char* rest_uri, char* req_data, char* reply); + }; +class PostRequestHandler : public RequestHandler +{ + public : + virtual void handle(char* rest_uri, char* req_data, char* reply); + +}; + +/* class PutRequestHandler : public RequestHandler { public : - - virtual void handle(char* rest_uri, char* reply); + virtual void handle(char* rest_uri, char* req_data, char* reply); }; +*/ - +/* class DeleteRequestHandler : public RequestHandler { public : - - virtual void handle(char* rest_uri, char* reply); + virtual void handle(char* rest_uri, char* req_data, char* reply); }; +*/ + #endif