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:
- 32:7ded9bacb546
- Parent:
- 29:00116fc9da74
- Child:
- 33:ef165a67ab22
--- a/SW_HTTPServer.h Thu Nov 28 18:19:06 2013 +0000 +++ b/SW_HTTPServer.h Mon Dec 30 23:03:37 2013 +0000 @@ -211,14 +211,14 @@ * When the callback returns, it should always indicate true that it has sent the page. * * @note The queryParams pointer purpose depends on the callback type. - * For CONTENT_LENGTH_REQUEST, the pointer points to the name=value pairs from the + * For CONTENT_LENGTH_REQUEST, the queryParams pointer points to the name=value pairs from the * header. - * For DATA_TRANSFER, the pointer points to the start of the actual data. + * For DATA_TRANSFER, the queryParams pointer points to the start of the chunk of data, queryParamCount is # bytes. * For SEND_PAGE, ... <to be determined> * * @param svr is a handle to this class, so the callback has access to member functions * @param queryParams is a pointer based on the callback type. - * @queryParamCount is the number of parameters. + * @queryParamCount is the number of parameters or bytes. * @return true if command was accepted */ typedef CallBackResults (* Handler)(HTTPServer * svr, CallBackType type, const char *path, const namevalue *queryParams, int queryParamCount);