mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-01 16:58:30 +00:00
parent
6a8c21269f
commit
3057315a1b
5 changed files with 23 additions and 8 deletions
10
tool/net/demo/.lua/mymodule.lua
Normal file
10
tool/net/demo/.lua/mymodule.lua
Normal file
|
@ -0,0 +1,10 @@
|
|||
local mymodule = {}
|
||||
|
||||
function mymodule.hello()
|
||||
SetStatus(200)
|
||||
SetHeader('Content-Type', 'text/html; charset=US-ASCII')
|
||||
Write("<!doctype html>\r\n")
|
||||
Write("<b>Hello World!</b>\r\n")
|
||||
end
|
||||
|
||||
return mymodule
|
Loading…
Add table
Add a link
Reference in a new issue