{"id":13761276,"url":"https://github.com/daurnimator/lua-http","last_synced_at":"2025-05-16T01:05:06.854Z","repository":{"id":26545560,"uuid":"29999057","full_name":"daurnimator/lua-http","owner":"daurnimator","description":"HTTP Library for Lua. Supports HTTP(S) 1.0, 1.1 and 2.0; client and server.","archived":false,"fork":false,"pushed_at":"2024-09-08T14:17:59.000Z","size":1987,"stargazers_count":831,"open_issues_count":60,"forks_count":83,"subscribers_count":36,"default_branch":"master","last_synced_at":"2025-04-06T11:07:14.341Z","etag":null,"topics":["cqueues","http","http2","lua","network"],"latest_commit_sha":null,"homepage":"https://daurnimator.github.io/lua-http/","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daurnimator.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["daurnimator"]}},"created_at":"2015-01-29T02:09:13.000Z","updated_at":"2025-04-02T12:39:07.000Z","dependencies_parsed_at":"2024-12-19T22:13:49.519Z","dependency_job_id":null,"html_url":"https://github.com/daurnimator/lua-http","commit_stats":{"total_commits":1134,"total_committers":8,"mean_commits":141.75,"dds":"0.012345679012345734","last_synced_commit":"ddab2835c583d45dec62680ca8d3cbde55e0bae6"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daurnimator%2Flua-http","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daurnimator%2Flua-http/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daurnimator%2Flua-http/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daurnimator%2Flua-http/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daurnimator","download_url":"https://codeload.github.com/daurnimator/lua-http/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254448579,"owners_count":22072764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cqueues","http","http2","lua","network"],"created_at":"2024-08-03T13:01:46.902Z","updated_at":"2025-05-16T01:05:06.835Z","avatar_url":"https://github.com/daurnimator.png","language":"Lua","readme":"# HTTP library for Lua.\n\n## Features\n\n  - Optionally asynchronous (including DNS lookups and TLS)\n  - Supports HTTP(S) version 1.0, 1.1 and 2\n  - Functionality for both client and server\n  - Cookie Management\n  - Websockets\n  - Compatible with Lua 5.1, 5.2, 5.3, 5.4 and [LuaJIT](http://luajit.org/)\n\n\n## Documentation\n\nCan be found at [https://daurnimator.github.io/lua-http/](https://daurnimator.github.io/lua-http/)\n\n\n## Status\n\n[![Build Status](https://github.com/daurnimator/lua-http/workflows/ci/badge.svg)](https://github.com/daurnimator/lua-http/actions?query=workflow%3Aci)\n[![Coverage Status](https://coveralls.io/repos/daurnimator/lua-http/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/daurnimator/lua-http?branch=master)\n[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/108/badge)](https://bestpractices.coreinfrastructure.org/projects/108)\n\n\n# Installation\n\nIt's recommended to install lua-http by using [luarocks](https://luarocks.org/).\nThis will automatically install run-time lua dependencies for you.\n\n    $ luarocks install http\n\n## Dependencies\n\n  - [cqueues](http://25thandclement.com/~william/projects/cqueues.html) \u003e= 20161214 (Note: cqueues currently doesn't support Microsoft Windows operating systems)\n  - [luaossl](http://25thandclement.com/~william/projects/luaossl.html) \u003e= 20161208\n  - [basexx](https://github.com/aiq/basexx/) \u003e= 0.2.0\n  - [lpeg](http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html)\n  - [lpeg_patterns](https://github.com/daurnimator/lpeg_patterns) \u003e= 0.5\n  - [binaryheap](https://github.com/Tieske/binaryheap.lua) \u003e= 0.3\n  - [fifo](https://github.com/daurnimator/fifo.lua)\n\nTo use gzip compression you need **one** of:\n\n  - [lzlib](https://github.com/LuaDist/lzlib) or [lua-zlib](https://github.com/brimworks/lua-zlib)\n\nTo check cookies against a public suffix list:\n\n  - [lua-psl](https://github.com/daurnimator/lua-psl)\n\nIf using lua \u003c 5.3 you will need\n\n  - [compat-5.3](https://github.com/keplerproject/lua-compat-5.3) \u003e= 0.3\n\nIf using lua 5.1 you will need\n\n  - [luabitop](http://bitop.luajit.org/) (comes [with LuaJIT](http://luajit.org/extensions.html)) or a [backported bit32](https://luarocks.org/modules/siffiejoe/bit32)\n\n### For running tests\n\n  - [luacheck](https://github.com/mpeterv/luacheck)\n  - [busted](http://olivinelabs.com/busted/)\n  - [luacov](https://keplerproject.github.io/luacov/)\n\n\n# Development\n\n## Getting started\n\n  - Clone the repo:\n    ```\n    $ git clone https://github.com/daurnimator/lua-http.git\n    $ cd lua-http\n    ```\n\n  - Install dependencies\n    ```\n    $ luarocks install --only-deps http-scm-0.rockspec\n    ```\n\n  - Lint the code (check for common programming errors)\n    ```\n    $ luacheck .\n    ```\n\n  - Run tests and view coverage report ([install tools first](#for-running-tests))\n    ```\n    $ busted -c\n    $ luacov \u0026\u0026 less luacov.report.out\n    ```\n\n  - Install your local copy:\n    ```\n    $ luarocks make http-scm-0.rockspec\n    ```\n\n\n## Generating documentation\n\nDocumentation is written in markdown and intended to be consumed by [pandoc](http://pandoc.org/). See the `doc/` directory for more information.\n","funding_links":["https://github.com/sponsors/daurnimator"],"categories":["Lua","资源","Resources"],"sub_categories":["Network"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaurnimator%2Flua-http","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaurnimator%2Flua-http","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaurnimator%2Flua-http/lists"}