openresty / openresty/lua-resty-redis
how to save response header to redis
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 2k
- Forks
- 447
- Avg merge
- 2h 24m
- Merged PRs (30d)
- 3
Description
Hello ChunGe,
Since this library cannot be used in code contexts like init_by_lua*, set_by_lua*, log_by_lua*, and header_filter_by_lua* .I got response header using ngx.resp.get_headers() in the pharse of header_filter_by_lua. And I want to save response header to redis.
Now,I don't know how to solve this problem,I can't find answer by google.
Thanks for your help.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the ngx_lua phase restrictions and the library's Redis usage for work initiated from header_filter_by_lua*. The issue does not name a repository file or test; done would require a confirmed, documented way to persist the headers retrieved with ngx.resp.get_headers(), or a clear explanation of why that flow is unsupported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, redis
- Domain
- backend, databases
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100