A simple web server that can be bound to either the EthernetInterface or the WiflyInterface.
Dependents: Smart-WiFly-WebServer WattEye X10Svr SSDP_Server
Diff: SW_HTTPServer.h
- Revision:
- 28:f93ef41b78e1
- Parent:
- 27:90a1f5a5392f
- Child:
- 29:00116fc9da74
--- a/SW_HTTPServer.h Thu Oct 10 20:38:12 2013 +0000 +++ b/SW_HTTPServer.h Fri Oct 11 02:33:46 2013 +0000 @@ -191,6 +191,12 @@ SEND_PAGE, ///< the activated method should now send the page } CallBackType; + typedef enum CALLBACKRESULTS { + ACCEPT_ERROR, ///< client not accepting the request. + ACCEPT_COMPLETE, ///< client accepted the request, the work is done. + ACCEPT_CONTINUE, ///< client accepted the request, additional transactions to complete. + } CallBackResults; + /** * This is the prototype for custom handlers that are activated via a callback * @@ -215,7 +221,7 @@ * @queryParamCount is the number of parameters. * @return true if command was accepted */ - typedef bool (* Handler)(HTTPServer * svr, CallBackType type, const char *path, const namevalue *queryParams, int queryParamCount); + typedef CallBackResults (* Handler)(HTTPServer * svr, CallBackType type, const char *path, const namevalue *queryParams, int queryParamCount); /** * Create the HTTPServer object.