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

custom-response插件支持对多个不同状态码自定义不同的应答 #1434

Open
ilovedumplings opened this issue Oct 25, 2024 · 4 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed level/normal sig/wasm

Comments

@ilovedumplings
Copy link

Why do you need it?

https://higress.io/docs/latest/plugins/transformation/custom-response/

看样例,似乎一个路由,只能配置一个自定义应答,我想要对多个响应码设置不同的应答,应该怎么处理呢?
image

How could it be?

A clear and concise description of what you want to happen. You can explain more about input of the feature, and output of it.

Other related information

Add any other context or screenshots about the feature request here.

@ilovedumplings
Copy link
Author

@johnlanni @Hazel0928 两位能帮忙看下这个问题吗?

@johnlanni
Copy link
Collaborator

可以扩展一下,这个issue我标记为 help wanted 了

@johnlanni johnlanni changed the title 关于自定义应答配置多个的问题 customer; Oct 25, 2024
@johnlanni johnlanni changed the title customer; custom-response插件支持对多个不同状态码自定义不同的应答 Oct 25, 2024
@johnlanni johnlanni added help wanted Extra attention is needed good first issue Good for newcomers sig/wasm level/normal labels Oct 25, 2024
@ilovedumplings
Copy link
Author

可以扩展一下,这个issue我标记为 help wanted 了

好的,这个功能的话大概多久可以更新呢?因为我们有个时间点,想看下如果时间不够的话我自己先尝试做一下

@ilovedumplings
Copy link
Author

@johnlanni 还有个问题就是,我看go和c++都有这个插件,请问这两个目前的逻辑都一样的是嘛?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed level/normal sig/wasm
Projects
Status: Todo
Development

No branches or pull requests

2 participants