Skip to content

Commit

Permalink
docs(expression): update expression for kong 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw authored and Guaris committed Aug 4, 2023
1 parent 38d5880 commit 22e3034
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions app/_src/gateway/reference/router-expressions-language.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 22e3034

Please sign in to comment.