Simplify http attrabute matching

In the past, we use Starlark script, it is over engineered and barely used.
By switching to simple key value string contains logic we can reduce core size about 0.7MB
This commit is contained in:
yuhan6665 2023-05-21 11:26:22 -04:00
parent d11d72be6c
commit bf4b1fab3c
8 changed files with 103 additions and 157 deletions

View file

@ -308,7 +308,9 @@ func TestRoutingRule(t *testing.T) {
{
rule: &RoutingRule{
Protocol: []string{"http"},
Attributes: "attrs[':path'].startswith('/test')",
Attributes: map[string]string {
":path": "/test",
},
},
test: []ruleTest{
{