Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1023 Bytes

http_server.md

File metadata and controls

29 lines (18 loc) · 1023 Bytes

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]