more handlers

Dependents:   bandwidth-meter-net mbedRail24v

Fork of Tiny-HTTPD by ban4jp -

Revision:
2:905fe8dfebd6
Parent:
1:5f009a651656
Child:
3:145c65ab9805
--- a/HTTPD.h	Sat Feb 01 15:46:26 2014 +0000
+++ b/HTTPD.h	Tue Feb 04 03:07:05 2014 +0000
@@ -20,17 +20,14 @@
 #define HTTPD_H
 
 #include "mbed.h"
-//#include "rtos.h"
-//#include "EthernetInterface.h"
 #include "TCPSocketServer.h"
 #include "CBuffer.h"
 
 //#define DEBUG
 
 #define HTTPD_PORT 80
-//#define HTTPD_MAX_CLIENTS 2
 #define HTTPD_MAX_CLIENTS 1
-#define HTTPD_KEEPALIVE 10
+#define HTTPD_KEEPALIVE 0 // keep-alive off
 #define HTTPD_TIMEOUT 15000
 #define HTTPD_MAX_HANDLES 10
  
@@ -52,6 +49,7 @@
 #define INFO(x, ...)
 #endif
 
+const char* const server_name = "Server: Tiny-HTTPD(mbed)\r\n";
 
 class HTTPD {
 public: