Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add write back instructions #14

Closed

Conversation

gongrong1226
Copy link

When we use @binding.Args we can get the args of the enhanced method. Now with the array args, we can modify the input parameters of the target method. As demonstrated in BytekitDemo.java.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@hengyunabc
Copy link
Collaborator

这个具体是什么场景下的需求?

@gongrong1226
Copy link
Author

需要对任意方法入参进行修改时,比如servlet的流量截取。将入参servletRequest和servletResponse替换为自己的代理request和代理response,以获取request的inputStream中的请求内容和response的outputStream中的返回内容。
虽然使用instrument-api的方式能做到修改入参,但又不易对任意方法进行增强。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants