Marcos Kirsch 5d4887927d MIME types now correct
Support for different mime types based on the file extension.
Added some code for parsing the arguments after the file
(index.html?a=b&c=d) but it’s not in use yet.
2015-02-14 19:38:38 -06:00
2015-02-14 01:22:36 -06:00
2015-02-14 19:38:38 -06:00
2015-02-08 22:03:44 -06:00
2015-02-02 18:44:41 -06:00
2015-02-08 22:10:24 -06:00

nodemcu-httpserver

A (very) simple web server written in Lua for the ESP8266 firmware NodeMCU.

Features

  • GET

    Simple GET method will return the requested file. NodeMCU's filesystem does not support folders, but filenames can contain slashes. So prefix your server files with "http/" (yeah, weird).

    Example: Say the IP for your ESP8266 is 2.2.2.2 and the server is running in the default port 80. Go to http://2.2.2.2/index.html using your web browser. The ESP8266 will serve you with the contents of the file "http_index.html" (if it exists).

Not supported

  • Other methods: GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS, CONNECT, PATCH
  • Serving anything that's not HTML (different mime types)
  • Server side scripting.

Open issues

Description
No description provided
Readme 482 KiB
Languages
Lua 63.4%
JavaScript 13.8%
HTML 11.2%
CSS 8.9%
Makefile 2.7%