https server

114 views
Skip to first unread message

Andrey Alexandrenko

unread,
Oct 5, 2012, 4:16:31 PM10/5/12
to lu...@googlegroups.com
Hi guys,

does anybody know how to create a https server with luvit? I'm a novice at lua. I would be over-grateful for a example which I can begin with.

Regards, Andrey 

Tim Caswell

unread,
Oct 5, 2012, 6:17:19 PM10/5/12
to lu...@googlegroups.com

I don't think we have https.createServer yet.

The new "web" module I'm working on is transport agnostic.  If you give it a tls stream in continuable stream format, it will provide an https server.

If you prefer the interface in the 'http' module (copied from nodejs), it shouldn't be hard to add https.createServer.  Basically create a server with `require('tls').createServer` instead of `require('net').createServer` and it will be https (I think).

Andrey Alexandrenko

unread,
Oct 8, 2012, 6:37:18 AM10/8/12
to lu...@googlegroups.com

Hello Tim,
thanks for you're fast answer. I will try both web and http. Is there a special path where the "web" module have to be installed in?
Regards, Andrey

Reply all
Reply to author
Forward
0 new messages