hello-world.lua 296 B

1234567891011121314
  1. return function (connection, req, args)
  2. dofile('httpserver-header.lc')(connection, 200, 'html')
  3. connection:send([===[<!DOCTYPE html>
  4. <html lang="en">
  5. <head>
  6. <meta charset="utf-8">
  7. <title>Hello World!</title>
  8. </head>
  9. <body>
  10. <h1>Hello World!</h1>
  11. </body>
  12. </html>]===])
  13. end