[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Asynchronous HTTPS in Lua
- From: William Ahern <william@...>
- Date: Sun, 25 Aug 2013 16:00:02 -0700
On Sun, Aug 25, 2013 at 08:20:25PM +1000, Choonster TheMage wrote:
> Does anyone know of any examples of asynchronous HTTPS requests in
> Lua? I've seen some examples of asynchronous HTTP using LuaSocket, but
> nothing with LuaSec for asynchronous HTTPS requests.
> I'm writing a Lua interface to a RESTful web API which requires
> HTTPS requests for authenticated users. I'm looking into what it would
> take to rewrite the library to use asynchronous requests instead of
> synchronous ones.
My cqueues library supports this:
But it doesn't use LuaSocket or LuaSec. See cqueues/src/lib/socket.c for how
it uses the OpenSSL library. Specifically, so_starttls_, so_read, and