We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Implement a plugin that can replace the response body according to the configuration
config example:
rules: - match: status: 403 body: "RBAC: access denied" replace: status: 200 body: "{\"code\":403,\"message\":\"User is not authenticated\"}" content-type: "application/json;utf-8" - match: status: 503 body: "no healthy upstream" replace: status: 200 body: "{\"code\":503,\"message\":\"No Healthy Upstream\"}" content-type: "application/json;utf-8"
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
Hi
Sorry, something went wrong.
zhangjiahaol
Successfully merging a pull request may close this issue.
Why do you need it?
实现一个插件,可以匹配应答和状态码返回自定义应答
Implement a plugin that can replace the response body according to the configuration
How could it be?
config example:
Other related information
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: