Marcos Kirsch
|
84f7a06aa1
No longer crashes when request is HTTP 1.0
|
před 9 roky |
Marcos Kirsch
|
a43fc20230
Remove debug traces, handle long filenames
|
před 9 roky |
Marcos Kirsch
|
d5fcc71c23
Move function definition to inside the socket listen argument list. This is harder to follow, but allows the coroutine to be unique since it is now part of the closure. Multiple files can be served simultaneously this way.
|
před 9 roky |
Marcos Kirsch
|
77920f4a94
Big refactoring: server now uses a separate thread that yields and then resumes on 'sent'. This allows us to serve large files. Moved serving of error pages and serving of static files into separate scripts httpserver-error.lua and httpserver-static.lua
|
před 9 roky |
Marcos Kirsch
|
d73bd73211
Added back improved version of validateMethod
|
před 9 roky |
Marcos Kirsch
|
c0d6218397
Support for Lua scripts
|
před 9 roky |
Marcos Kirsch
|
51bfb3a8cc
Minor cleanup
|
před 9 roky |
Marcos Kirsch
|
5d4887927d
MIME types now correct
|
před 9 roky |
Marcos Kirsch
|
b75d610e6a
Shortened code.
|
před 9 roky |
Marcos Kirsch
|
c33ba75395
Send files in little chunks, large files work now.
|
před 9 roky |
Marcos Kirsch
|
8272d8f59c
Functional GET can serve text files up to 1 KB
|
před 9 roky |
Marcos Kirsch
|
3d4e4ee501
First pass of server. Not fully operational. Basic GET works, serves requested file. But server runs out of memory or/and only works with one connection.
|
před 9 roky |
Marcos Kirsch
|
1c709b838b
Minimalistic server can be started and returns hardcoded message, prior to cleanup
|
před 9 roky |
Marcos Kirsch
|
f52e8f47e6
Add all files to source control even though they are messy and don't do much yet
|
před 9 roky |