/examples/httpservertest/nqpmodule.nqp

http://github.com/NotFound/winxed · Unknown · 13 lines · 13 code · 0 blank · 0 comment · 0 complexity · 9d3ff3ecc60b76e3c3f47ca9b5617954 MD5 · raw file

  1. sub nqp_handler($request)
  2. {
  3. $request.contentType('text/html');
  4. $request.print(
  5. "<html>\n" ~
  6. "<body>\n" ~
  7. "<h1>\n" ~
  8. "Hello from nqp module!\n" ~
  9. "</h1>\n" ~
  10. "</body>\n" ~
  11. "</html>\n"
  12. );
  13. }