• Stars
    star
    747
  • Rank 58,251 (Top 2 %)
  • Language
    Lua
  • License
    MIT License
  • Created about 9 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

HTTP Library for Lua. Supports HTTP(S) 1.0, 1.1 and 2.0; client and server.

HTTP library for Lua.

Features

  • Optionally asynchronous (including DNS lookups and TLS)
  • Supports HTTP(S) version 1.0, 1.1 and 2
  • Functionality for both client and server
  • Cookie Management
  • Websockets
  • Compatible with Lua 5.1, 5.2, 5.3, 5.4 and LuaJIT

Documentation

Can be found at https://daurnimator.github.io/lua-http/

Status

Build Status Coverage Status CII Best Practices

Installation

It's recommended to install lua-http by using luarocks. This will automatically install run-time lua dependencies for you.

$ luarocks install http

Dependencies

To use gzip compression you need one of:

To check cookies against a public suffix list:

If using lua < 5.3 you will need

If using lua 5.1 you will need

For running tests

Development

Getting started

  • Clone the repo:

    $ git clone https://github.com/daurnimator/lua-http.git
    $ cd lua-http
    
  • Install dependencies

    $ luarocks install --only-deps http-scm-0.rockspec
    
  • Lint the code (check for common programming errors)

    $ luacheck .
    
  • Run tests and view coverage report (install tools first)

    $ busted -c
    $ luacov && less luacov.report.out
    
  • Install your local copy:

    $ luarocks make http-scm-0.rockspec
    

Generating documentation

Documentation is written in markdown and intended to be consumed by pandoc. See the doc/ directory for more information.

More Repositories

1

lua.vm.js

The project is superceded by Fengari. See https://fengari.io/
C
834
star
2

lpeg_patterns

A collection of LPEG patterns
Lua
116
star
3

luatz

Time, Date and Timezone library for lua
Lua
108
star
4

lredis

A redis client for lua
Lua
42
star
5

lua-systemd

Systemd bindings for Lua
C
39
star
6

ldbus

Lua Bindings to dbus.
C
38
star
7

mongol

A lua driver for mongodb
Lua
35
star
8

fifo.lua

Fifo library for Lua
Lua
34
star
9

mmdblua

Maxmind database parser for lua
Lua
29
star
10

ffmpeg-lua-ffi

ffmpeg lua bindings using the ffi
Lua
29
star
11

lua-spawn

A lua library to spawn programs
C
26
star
12

lua-tui

lua library for creating a terminal UI
Lua
20
star
13

zig-autolua

Lua binding creator for zig
Zig
18
star
14

luacov-reporter-lcov

A luacov reporter for use with lcov
Lua
15
star
15

luasodium

Lua binding to libsodium (https://github.com/jedisct1/libsodium)
Lua
14
star
16

lomp2

A new take on lomp; now with luajit ffi!
Lua
13
star
17

lamt

Lua Audio Metadata Tool
Lua
12
star
18

lua-hydrogen

Lua bindings to libhydrogen
C
11
star
19

fengari-electron-example

JavaScript
10
star
20

lua-ffi-util

A utilities module for the lua ffi
Lua
10
star
21

lua-psl

Lua bindings to libpsl (https://github.com/rockdaboot/libpsl)
C
10
star
22

cqueues-pgsql

luapgsql with cqueues for non-blocking postgres queries
Lua
9
star
23

pg-kinesis-bridge

Listen for events from PostgreSQL and send them to AWS Kinesis
JavaScript
8
star
24

lua_cpp

A C pre-processor written in lua
Lua
8
star
25

openal-lua-ffi

openal lua bindings using the ffi
Lua
6
star
26

zig-piecetable

A PieceTable data structure for zig
Zig
4
star
27

lua-pg

Nice API to PostgreSQL
Lua
4
star
28

mod_systemd

systemd module for prosody
Lua
4
star
29

zig-timeout-wheel

A zig port of william ahern's timer wheel library (https://github.com/wahern/timeout/)
Zig
4
star
30

fengari-phaser-tutorial-02

HTML
3
star
31

lua-unistring

Lua bindings to libunistring (https://www.gnu.org/software/libunistring)
C
3
star
32

postgrest-benchmark

Benchmarking postgrest with @bduisenov
Shell
3
star
33

zig-unicode

A Zig unicode library
2
star
34

lua-idn2

Bindings to libidn2 https://www.gnu.org/software/libidn/libidn2/manual/libidn2.html
C
2
star
35

iconv-lua-ffi

Lua
2
star
36

justabit

JMAP <> notmuch bridge
Lua
2
star
37

lua-autoconf-example

C
2
star
38

onion-everywhere

A Firefox/Chrome extension that redirects to TOR-accessible versions of pages as advertised in Onion-Location headers
JavaScript
2
star
39

mad-lua-ffi

Lua
2
star
40

lua-pgquery

Lua bindings to libpg_query
C
1
star
41

l

A lua REPL
Lua
1
star
42

PKGBUILD-arcan-git

Shell
1
star
43

libsndfile-lua-ffi

Lua
1
star
44

luaThreading

Using the luajit ffi to do threading
Lua
1
star
45

wavpack-lua-ffi

wavpack lua bindings using the ffi
Lua
1
star