feat: optimize transformer go wasm plugin (#712)

This commit is contained in:
Uncle-Justice
2024-01-22 13:40:55 +08:00
committed by GitHub
parent d3d000753d
commit 879192cf99
5 changed files with 1413 additions and 510 deletions

View File

@@ -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 {