lua-http

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

Github星跟蹤圖

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 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.

主要指標

概覽
名稱與所有者scratchfoundation/scratch-blocks
主編程語言JavaScript
編程語言Lua (語言數: 5)
平台
許可證Apache License 2.0
所有者活动
創建於2016-01-07 15:49:10
推送於2025-05-31 13:06:21
最后一次提交2016-05-17 05:42:54
發布數374
最新版本名稱v1.1.210 (發布於 )
第一版名稱0.1.0 (發布於 )
用户参与
星數2.7k
關注者數161
派生數1.4k
提交數6.2k
已啟用問題?
問題數1218
打開的問題數340
拉請求數1616
打開的拉請求數61
關閉的拉請求數453
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?