Skip to content

Commit 36514bb

Browse files
authored
Clarify HTTPRouteMatch rules (#3741)
* docs: clarify HTTPRouteMatch rules Signed-off-by: Vegard Hagen <[email protected]> * docs: add missing criterion in HTTPRouteMatch rules also try to use more clear language Signed-off-by: Vegard Hagen <[email protected]> --------- Signed-off-by: Vegard Hagen <[email protected]> Signed-off-by: Vegard Hagen <[email protected]>
1 parent 3222422 commit 36514bb

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

site-src/api-types/httproute.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,16 @@ unspecified, the rule performs no forwarding. If unspecified and no filters
211211
are specified that would result in a response being sent, a 404 error code
212212
is returned.
213213

214-
The following example forwards HTTP requests for prefix `/bar` to service
215-
"my-service1" on port `8080` and HTTP requests for prefix `/some/thing` with
216-
header `magic: foo` to service "my-service2" on port `8080`:
214+
The following example forwards HTTP requests for path prefix `/bar` to service
215+
"my-service1" on port `8080`, and HTTP requests fulfilling _all_ four of the
216+
following criteria
217+
218+
- header `magic: foo`
219+
- query param `great: example`
220+
- path prefix `/some/thing`
221+
- method `GET`
222+
223+
to service "my-service2" on port `8080`:
217224
```yaml
218225
{% include 'standard/basic-http.yaml' %}
219226
```

0 commit comments

Comments
 (0)