github.com/form3tech-oss/cilium@v1.6.3/examples/policies/l7/http/http.json (about)

     1  [{
     2      "labels": [{"key": "name", "value": "l7-rule"}],
     3      "endpointSelector": {"matchLabels":{"app":"myService"}},
     4      "ingress": [{
     5          "toPorts": [{
     6              "ports": [
     7                  {"port": "80", "protocol": "TCP"}
     8              ],
     9              "rules": {
    10                  "http": [
    11                      {
    12                          "method": "GET",
    13                          "path": "/path1$"
    14                      },{
    15                          "method": "PUT",
    16                          "path": "/path2$",
    17                          "headers": ["X-My-Header: true"]
    18                      }
    19                  ]
    20              }
    21          }]
    22      }]
    23  }]