How can I get gRPC Metadata (or said Response trailers) in Kong plugin ? #13218
-
what i had try:
both can not work, so if anyone konw how to get the gRPC response Metadata value (Response trailers value) in the Kong plugin ? |
Beta Was this translation helpful? Give feedback.
Answered by
StarlightIbuki
Jun 18, 2024
Replies: 1 comment 3 replies
-
The metadata could be located in trailers, which PDK does not support to extract for now. A workaround could be to get the raw socket, read the raw request/response stream and parse the body. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
jluncc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The metadata could be located in trailers, which PDK does not support to extract for now. A workaround could be to get the raw socket, read the raw request/response stream and parse the body.