lua-resty-http icon indicating copy to clipboard operation
lua-resty-http copied to clipboard

Lua HTTP client cosocket driver for OpenResty / ngx_lua.

Results 50 lua-resty-http issues
Sort by recently updated
recently updated
newest added

Hi Team, I am unable to download large file from upstream server and getting unread data in buffer while setting the keepalive time. Please can someone help in fixing this...

Hi team: should be lua-resty-http installed if openresty is used on the docker environment?

When using request_uri with the response contains trailer, we always find "unread data in buffer" error because trailers are not read before set_keepalive. Signed-off-by: spacewander

local res, err = httpc:request_uri("XXXX", { ssl_verify = false, keepalive_timeout = 2000, method = "POST", body = cjson.encode("{\"token\":\"aaa\"}"), headers = { ["Content-Type"] = "application/json;charset=UTF-8" } })

in http.lua at line 260, the parse regex failed when the url like "xxx.yyy.com/config/list"; the fixed regex may like [[^(?:(http[s]?)://)?...]]

We use httpc:request_uri() in production environment, and has a large number of requests to call a micro-service. Sometimes we found in _chunked_body_reader function, co_yield(str) does not yield and suspend the...

https://github.com/ledgetech/lua-resty-http/blob/2af9925acf5cbb5b387539cd4463552ebbd5efee/lib/resty/http.lua#L937-L950 In function request_uri(), we read response body by res:read_body(), but Trailer is not be read before closing connection I think. Correct me if I am wrong~ Ref: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Trailer

GitHub [deprecated usage of `git://` (unencrypted Git protocol) on March 15th, 2022](https://github.blog/changelog/2022-03-15-removed-unencrypted-git-protocol-and-certain-ssh-keys/), so LuaRocks will fail to install any package including a `source.url` starting with `git://`. According to the [LuaRocks...

This PR is a backport of #270 to the `v0.16.x` "branch" (there is only a tag AFAICT). I created a new branch from the `v0.16.1` tag. I tried to make...