openresty / openresty/lua-nginx-module
dynamic upstream and add header
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 11.8k
- Forks
- 2.1k
- Avg merge
- 6h 1m
- Merged PRs (30d)
- 6
Description
Dynamic upstream implemented via Lua, I want to add request headers in the upstream logic, what do I do?

I want to add a request header in balancer.balance() function and send the request header to the backend.
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 with the Lua balancer.balance() upstream logic described in the issue and determine how request headers are handled before the backend request is sent. Done means establishing whether this header behavior is supported and defining the project change or documentation needed to make it clear.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, nginx
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100