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-09 years ago26 downloads

Dependencies

lua >= 5.1

Dependency for

api7-lua-resty-aws, api7-skywalking-nginx-lua, APIcast, APIOAK, auth0-nginx, authy-lua, botbye-openresty, centrilua, claims-handler, cmft-base-kong, cmft-kong, datadome-openresty, 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-ddtrace, kong-plugin-ddtrace, kong-plugin-ice-jaeger, kong-plugin-kong-rhsso, kong-plugin-mithril, kong-plugin-moesif, kong-plugin-oidc, kong-plugin-opa, kong-plugin-opa2, kong-plugin-oracle-idcs, 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, lua-resty-aws, lua-resty-aws-email, lua-resty-aws-sdk, lua-resty-azure, 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-motan, lua_resty_netacea, lua-resty-openidc, lua-resty-openidc, lua-resty-oss, 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, moesifapi-lua, mooncrafts, multistreamer, ngx-oauth, ngx-oauth-jyrno42, ngx-oauth-pleroma-mod, opentelemetry, opentelemetry-lua, orange, perimeterx-nginx-plugin, privilege-process-demo, resty-dynacode, resurfaceio-logger, rollbar-nginx, santoku-resty, sc-lua-resty-auto-ssl, skywalking-nginx-lua, skywalking-nginx-lua-test, skywalking-nginx-lua-ww, stormpath-nginx, token-handler, Videur, web, wtf-plugin-honeybot-sandbox, x-lua-api-gateway-aws, zhangsaizz-skywalking-nginx-lua