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

自定义AbstractRemotingProcessor #361

Open
wangfengtong opened this issue Oct 11, 2024 · 2 comments
Open

自定义AbstractRemotingProcessor #361

wangfengtong opened this issue Oct 11, 2024 · 2 comments

Comments

@wangfengtong
Copy link

我们项目使用了sofa-bolt框架,当前项目因为需要经过一个网络安全隔离装置,隔离装置限制了响应体只能是1个字节,我翻看了下源码,当前框架限制了必须是RemotingCommand的子类,请问有什么办法可以自定义响应的内容,不限制对象类型。

@chuailiwu
Copy link
Collaborator

这种框架核心类改不了哈

@OrezzerO
Copy link
Collaborator

OrezzerO commented Nov 8, 2024

具体响应是 Decoder 写的, 可以通过自定义Decoder实现, 来做到只响应一个字节

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

No branches or pull requests

3 participants