From 960f68fe6e06b0240796224f3037ad481146dfda Mon Sep 17 00:00:00 2001 From: chronolaw Date: Fri, 4 Aug 2023 10:32:56 +0800 Subject: [PATCH] docs(expression): update expression for kong 3.4 --- .../gateway/reference/router-expressions-language.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/_src/gateway/reference/router-expressions-language.md b/app/_src/gateway/reference/router-expressions-language.md index e682177a5392..a3c745f44ea0 100644 --- a/app/_src/gateway/reference/router-expressions-language.md +++ b/app/_src/gateway/reference/router-expressions-language.md @@ -54,6 +54,10 @@ For example, you can not perform string comparisons on a integer type field. | `http.host` | Lists of domains that match a route. | String | | `http.path` | Normalized request path (without query parameters). | String | | `http.headers.header_name` | Value of header `Header-Name`. Header names are converted to lower case, and `-` are replaced to `_`. | String | +| `net.src.ip` | Source IP address of incoming connection. | IpAddr | +| `net.src.port` | Source port number of incoming connection. | Int | +| `dst.src.ip` | Destination IP address of incoming connection. | IpAddr | +| `dst.src.port` | Destination port number of incoming connection. | Int | ## String @@ -64,8 +68,7 @@ For example, you can not perform string comparisons on a integer type field. | ~ | Regex matching | | ^= | Prefix matching | | =^ | Suffix matching | -| in | Contains | -| not in | Does not contain | +| contains | Contains | ## String transformations @@ -84,13 +87,14 @@ For example, you can not perform string comparisons on a integer type field. | < | Less than | | <= | Less than or equal | -## IP +## IpAddr | Operator | Meaning | | --- | ----------- | | == | Equals | | != | Not equals | -| in | Contains | +| in | In CIDR | +| not in | Not in CIDR | ## Boolean