alibaba / higress

Cloud Native API Gateway | 云原生API网关
https://higress.io
Apache License 2.0
2.5k stars 407 forks source link

从请求的url参数里读取key-value并将这个value值作为目的地址进行转发 #1022

Open whitebear009 opened 1 month ago

whitebear009 commented 1 month ago

请问higress可以实现这个需求吗:从请求的url参数里读取key-value并将这个value值作为目的地址进行转发

Why do you need it?

Is your feature request related to a problem? Please describe in details 业务需求,对于长连接业务需要指定到对应的pod。nginx上有类似的配置可以实现:

proxy pass http://$arg_server;

$arg_是nginx原生支持的关键词,可以从url里解析参数(https://nginx.org/en/docs/http/ngx_http_core_module.html#var_arg_) 希望higress也能实现类似功能