Support for manipulating response body in Python PDK
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 48
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I'm developing a Kong plugin using the Python PDK. One of the requirements of my plugin is to manipulate the response body, similar to how it's done in the Lua PDK with ngx.arg[1] during the body_filter phase. (or response.set_raw_body)
However, I've noticed that the Python PDK doesn't seem to support the body_filter phase or provide a direct way to interact with the response body in chunks
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 Python PDK's supported plugin phases and comparing them with the Lua PDK's body_filter phase, ngx.arg[1], and response.set_raw_body references in the issue. Define the supported response-body interaction and chunk-handling behavior, then verify that a Python Kong plugin can manipulate response bodies as required.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100