Skip to content

How to get the request body and service response body in a kong custom plugin? #1876

Answered by shaneutt
shahamit asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @shahamit,

The following links provide a rough overview of the request and the how to operate on the entire response body:

If you want to perform a response transform that the stock response transformer can't do you can follow the "aggregate each of the body_filter iterations into a table, concatenate them, and then pass into your transform function when you get an EOF" pattern from above (and probably even reuse a fair amount of the code). You'll write your own function where response-transforme…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@shahamit
Comment options

@shaneutt
Comment options

Answer selected by shaneutt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants