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-07-28 18:36:32
最后一次提交2016-05-17 05:42:54
发布数374
最新版本名称v1.1.210 (发布于 )
第一版名称0.1.0 (发布于 )
用户参与
星数2.7k
关注者数161
派生数1.5k
提交数6.2k
已启用问题?
问题数1219
打开的问题数341
拉请求数1616
打开的拉请求数62
关闭的拉请求数471
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?