Kong / Kong/kong-python-pdk

Support for manipulating response body in Python PDK

Open
#128 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

pending author feedback
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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.