Implement support for more arbitrary HTTP methods. Allows GET PUT and POST. With minor changes needed to support others

This commit is contained in:
Ryan Voots
2015-08-31 18:01:06 -07:00
parent af57939e0d
commit ef340bc82a
12 changed files with 128 additions and 37 deletions

View File

@@ -1,4 +1,4 @@
return function (connection, args)
return function (connection, req, args)
connection:send("HTTP/1.0 200 OK\r\nContent-Type: text/html\r\nCache-Control: private, no-store\r\n\r\n")
connection:send('<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>Arguments</title></head>')
connection:send('<body>')