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.
Fork of SW_HTTPServer by
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.