Use _delay_us() function in the XPROGTarget.c file to ensure timing requirements...
[pub/USBasp.git] / Projects / Webserver / Lib / HTTPServerApp.h
index b96e2e3..1ab64b3 100644 (file)
                #include <avr/pgmspace.h>\r
                #include <string.h>\r
                \r
-               #include <LUFA/Version.h>\r
-               \r
                #include <uip.h>\r
                #include <ff.h>\r
-               \r
+       \r
        /* Enums: */\r
                /** States for each HTTP connection to the webserver. */\r
                enum Webserver_States_t\r
                {\r
                        WEBSERVER_STATE_OpenRequestedFile, /** Currently opening requested file */\r
-                       WEBSERVER_STATE_SendHeaders, /**< Currently sending HTTP headers to the client */\r
+                       WEBSERVER_STATE_SendResponseHeader, /**< Currently sending HTTP response headers to the client */\r
+                       WEBSERVER_STATE_SendMIMETypeHeader, /**< Currently sending HTTP MIME type header to the client */\r
                        WEBSERVER_STATE_SendData,    /**< Currently sending HTTP page data to the client */\r
                        WEBSERVER_STATE_Closed,      /**< Connection closed after all data sent */\r
                };\r
+               \r
+       /* Type Defines: */\r
+               /** Type define for a MIME type handler. */\r
+               typedef struct\r
+               {\r
+                       char Extension[4]; /**< 3 or less character file extension */\r
+                       char MIMEType[30]; /**< Appropriate MIME type to send when the extension is encountered */\r
+               } MIME_Type_t;\r
        \r
        /* Macros: */\r
                /** TCP listen port for incomming HTTP traffic */\r