could we add some hook method to allow users set header in pulsar-admin-client
- Dominant language
- Java
- Stars
- 15.3k
- Forks
- 3.8k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 160
Description
**Is your enhancement request related to a problem? Please describe.**
A clear and concise description of what the enhancement is.
now , when we use pulsar-admin-client to invoke some rest api

we only add auth header to request, but sometimes ,we want to add some extra headers
**Describe the solution you'd like**
1.

allow client register inteceptor
2. before and after requestAsync method , do some hook method
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
Contributor guide
Research direction
Start by locating the pulsar-admin-client implementation of requestAsync and the code that adds the auth header. Review how an interceptor or before/after hook could supply extra headers; the work is done when callers can register a hook and those headers are included in REST API requests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100