lights FAQ Forum github.com/luapower/http
This package
http
client
server

Networking
sock
libtls
libtls_bearssl
bearssl
resolver
http
uri
rsync

local server = require'http_server'

HTTP 1.1 coroutine-based async server in Lua.

Features, https, gzip compression, persistent connections, pipelining, resource limits, multi-level debugging, cdata-buffer-based I/O.

Uses sock and libtls for I/O and TLS or you can bring your own stack.

GZip compression can be enabled with client.http.zlib = require'zlib'.

Status

WIP

API

server:new(opt) -> server create a server object

Server options

libs required: 'sock sock_libtls zlib'
listen {host=, port=, tls=t|f, tls_options=}
tls_options options for libtls

Last updated: 3 days ago | Edit on GitHub

Package:http
Pkg type:Lua+ffi
Version: 3bb3970
Last commit:
Author: Cosmin Apreutesei
License: Public Domain

Requires: glue  libb64  lpeg  luajit  socketloop  time  uri  socket 

Required by: none


Top