openresty / openresty/lua-resty-redis

how to save response header to redis

Open
#146 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.