worried-school-8617
03/01/2022, 3:31 PMmagnificent-energy-493
worried-school-8617
03/01/2022, 4:21 PMdamp-sunset-69236
03/01/2022, 6:44 PMdamp-sunset-69236
03/01/2022, 6:45 PMworried-school-8617
03/02/2022, 5:56 AM{{ printIndex .MatchContext.RegexpCaptureGroups 0}}
does return anything when used with globworried-school-8617
03/02/2022, 1:41 PM----- Request Start ----->
Method: GET
Path: /foo/bar
Headers:
Accept: */*
Accept-Encoding: gzip
Host: localhost:4455
User-Agent: curl/7.77.0
X-Capturegroups:
X-Extra: map[]
X-Forwarded-For: 192.168.96.1
X-Header: map[Accept:[*/*] User-Agent:[curl/7.77.0]]
X-Method: GET
X-Url: <http://localhost:4455/foo/bar>
X-User:
<----- Request End -----
- id: allow-test
upstream:
url: <http://host.docker.internal:8080>
preserve_host: true
match:
url: <http://localhost:4455/><{*,*/*}>
methods:
- GET
authenticators:
- handler: noop
authorizer:
handler: allow
mutators:
- handler: header
config:
headers:
X-Extra: "{{.Extra }}"
X-Header: "{{.MatchContext.Header }}"
X-URL: "{{.MatchContext.URL }}"
X-Method: "{{.MatchContext.Method }}"
X-CaptureGroups: "{{ printIndex .MatchContext.RegexpCaptureGroups 0 }}"