tzssangglass commented on issue #54:
URL:
https://github.com/apache/apisix-java-plugin-runner/issues/54#issuecomment-890343673
> request.setArg("test_arg", "test_value");
>
> response.setHeader("para_test", "test");
`request.setArg("test_arg", "test_value");` means that rewrite the current
request, take a look at:
https://github.com/apache/apisix-java-plugin-runner/blob/main/docs/en/latest/development.md#rewrite-request
`response.setHeader("para_test", "test");` means that stop the current
request, the client will receive the relevant parameters generated here. take a
look at:
https://github.com/apache/apisix-java-plugin-runner/blob/main/docs/en/latest/development.md#stop-request
**If both of these exist, then the request will be stopped.**
Using the same environment and code as yours, here are my reproduction
results:
```
$ curl -i 127.0.0.1:9080/get
HTTP/1.1 500 Internal Server Error
Date: Sat, 31 Jul 2021 12:40:19 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 553
Connection: close
para-test: test
ETag: "610544ac-229"
Server: APISIX/2.7
```
the `para-test` header has been successfully returned to the client.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]