apisix-java-plugin-runner
apisix-java-plugin-runner copied to clipboard
How get upstream responses whole body,not only header or statusCode
Issue description
How get upstream responses whole body,not only header or statusCode
Environment
- your apisix-java-plugin-runner version
Hope to provide function
PostFillter postRequest.getUpstreamResponseBody()
No support yet. We need to wait for APISIX to complete this feature before we can support it.
response-rewrite lua has method " local body = core.response.hold_body_chunk(ctx)" get response body。but i only do Java.
response-rewrite
has nothing to do with the plugin runner, they are not the same thing.
0.3.0版本还是没有支持获取上游响应的body,我也需要这个功能
this when APISIX complete this feature?
need too. At the same time, it is necessary to support body rewriting before the request reaches the upstream
Already supported, refer to: https://github.com/apache/apisix-java-plugin-runner/blob/main/docs/en/latest/development.md#get-the-upstream-response-and-process