blob: 2c2ab1dca8b57fa7cd829bcc164bf3c552886ad5 [file] [log] [blame]
Frédéric Lécailleb083c832018-08-23 18:06:35 +02001core.register_service("foo.http", "http", function(applet)
2 core.msleep(10)
3 applet:start_response()
4end)
5
6core.register_service("foo.tcp", "tcp", function(applet)
7 applet:send("HTTP/1.1 200 OK\r\nTransfer-encoding: chunked\r\n\r\n0\r\n\r\n")
8end)