# ledgetech/lua-resty-http

Lua HTTP client cosocket driver for OpenResty / ngx_lua.

Repository: https://github.com/ledgetech/lua-resty-http
Canonical: https://ross.abutalabs.com/products/lua-resty-http
Language: Lua
License: BSD-2-Clause
License Family: permissive
Topics: openresty, http-client, lua, nginx, nginx-lua, luajit, streaming, http
Last push: 2026-08-11T08:14:16+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 97, release rhythm 60, longevity 100
- inputs: {"age_days": 4710, "days_push": 22, "days_rel": 58, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2078, forks 627 (observed 2026-08-28T04:06:11.406962+00:00)

## What it is
A Lua HTTP client cosocket driver for OpenResty / ngx_lua, supporting HTTP 1.0/1.1, SSL, streaming response bodies, keepalives, and request pipelining. It is production ready and distributed via LuaRocks.

## Use cases
- make HTTP requests from OpenResty Lua code
- stream large HTTP response bodies with predictable memory usage
- pipeline multiple HTTP requests over a single connection
- reuse keepalive connections to upstream services in nginx
- make mTLS requests from ngx_lua
- propagate W3C trace context headers in outbound requests

## When to choose
- you are building services on OpenResty or ngx_lua and need an HTTP client
- you need streaming or pipelined HTTP requests with low memory overhead
- you want connection keepalive pooling to upstream APIs

## When to avoid
- you are not running OpenResty / ngx_lua (e.g. plain Lua or other web servers)
- you need HTTP/2 support
- you want a high-level REST client with retries and middleware out of the box

## Facets
- artifact type: library
- maturity: stable
- function: http-client, streaming, middleware
- domain: web-development, backend, apis, developer-tools
- platform: lua
- tags: openresty, ngx-lua, cosocket, http-1-1, keepalive, pipelining, mtls, luarocks, nginx

## Member repositories
- ledgetech/lua-resty-http (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:11.406962+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:56:07.587065+00:00, confidence not recorded.
  - readme: https://github.com/ledgetech/lua-resty-http (fetched 2026-08-28T04:06:11.406962+00:00, sha 7990c4635420)
- Data as of 2026-08-30T08:39:29.467469+00:00.
