lua-resty-http

Lua HTTP client cosocket driver for OpenResty / ngx_lua.

Features an HTTP 1.0 and 1.1 streaming interface to reading bodies using coroutines, for predictable memory usage in Lua land. Alternative simple interface for singleshot requests without manual connection step. Supports chunked transfer encoding, keepalive, pipelining, and trailers. Headers are treated case insensitively. Probably production ready in most cases, though not yet proven in the wild. Recommended by the OpenResty maintainer as a long-term replacement for internal requests through ngx.location.capture.

Versions

0.06-07 years ago13 downloads

Dependencies

lua >= 5.1

Dependency for

APIcast, APIOAK, auth0-nginx, authy-lua, centrilua, claims-handler, cmft-base-kong, cmft-kong, dbhys-openresty-skywalking, dtracing, esk-lua-resty-auto-ssl, fork3-sc-lua-resty-auto-ssl, ghl-lua-auto-ssl, ghl-lua-resty-auto-ssl, gxid-bearer, gxs-auth, jumbleberry-auto-ssl, kong, kong, kong-oidc-google-groups, kong-opa-plugin, kong-phantom-token, kong-plugin-abac, kong-plugin-acp, kong-plugin-ice-jaeger, kong-plugin-mithril, kong-plugin-oidc, kong-plugin-opa, kong-plugin-template-transformer, kong-plugin-template-transformer, kong-plugin-the-fuckman, kong-plugin-the-middleman, kong-plugin-traceable, kong-plugin-zipkin, kong-plugin-zipkin, ledge, lua-api-gateway-aws, lua-fiware-lib, lua-payssion, lua-resty-acme, lua-resty-auto-ssl, lua-resty-auto-ssl-20200912, lua-resty-auto-ssl-DE, lua-resty-auto-ssl-instrumented, lua-resty-auto-ssl-multiname, lua-resty-aws, lua-resty-aws-email, lua-resty-aws-sdk, lua-resty-certificate-sso, lua-resty-consul, lua-resty-consul-0.3.2, lua-resty-consul-event, lua-resty-consul-event, lua-resty-couchdb, lua-resty-duo-mobile, lua-resty-etcd, lua-resty-ga, lua-resty-gaze, lua-resty-influx, lua-resty-influx, lua-resty-influx-mufanh, lua-resty-influx-statistics, lua-resty-iyo-auth, lua_resty_netacea, lua-resty-openidc, lua-resty-paypal, lua-resty-phantom-token, lua-resty-pubsub, lua-resty-pushover, lua-resty-rollbar, lua-resty-sse, lua-resty-upstream, lua-resty-upstream-worker, middleware, mooncrafts, multistreamer, ngx-oauth, ngx-oauth-jyrno42, ngx-oauth-pleroma-mod, opentelemetry-lua, orange, perimeterx-nginx-plugin, privilege-process-demo, resty-dynacode, resurfaceio-logger, rollbar-nginx, sc-lua-resty-auto-ssl, skywalking-nginx-lua, skywalking-nginx-lua-test, stormpath-nginx, token-handler, Videur, web, wtf-plugin-honeybot-sandbox, x-lua-api-gateway-aws, zhangsaizz-skywalking-nginx-lua