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

Networking
sock
connpool
resolver
http
uri
rsync
libtls
libtls_bearssl
bearssl

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

Needs hostile testing

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: 15 months ago | Edit on GitHub

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

Requires: base64  errors  glue  linebuffer  lpeglabel  luajit  time  uri 

Required by: none


Top