mirror of
https://github.com/alibaba/higress.git
synced 2026-05-30 15:47:28 +08:00
feat: optimize transformer go wasm plugin (#712)
This commit is contained in:
@@ -59,6 +59,15 @@ func isValidOperation(op string) bool {
|
||||
}
|
||||
}
|
||||
|
||||
func isValidMapSource(source string) bool {
|
||||
switch source {
|
||||
case "headers", "querys", "body":
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
func parseQueryByPath(path string) (map[string][]string, error) {
|
||||
u, err := url.Parse(path)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user