Kong / Kong/kong-python-pdk

header_filter and body_filter handlers are not supported

Open
#125 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
48
Forks
16
PR merge metrics
No merged PRs in 30d

Description

header_filter and body_filter handlers do not work because they are not supported in https://github.com/Kong/kong-python-pdk/blob/master/kong_pdk/module.py#L31. If it is required to do post-processing of headers, it's only possible with response header, but the thing is that it's going to active buffering automatically which is not really required as long as you just need to update headers. It would be really nice to add support for header_filter and body_filter.

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 in kong_pdk/module.py at line 31, where the supported handlers are defined, and trace how handler registration and response processing work. Determine how header_filter and body_filter should be exposed without activating response buffering when only headers need updating. Done means both handlers are supported while preserving the existing response behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.