avinal commented on a change in pull request #6464:
URL: https://github.com/apache/apisix/pull/6464#discussion_r815864387
##########
File path: docs/en/latest/architecture-design/router.md
##########
@@ -21,19 +21,23 @@ title: Router
#
-->
-A distinguishing feature of APISIX from other API gateways is that it allows
users to choose different routers to better match free services, making the
best choice between performance and freedom.
+A distinguishing feature of Apache APISIX from other API gateways is that it
allows you to choose different Routers to better match free services, giving
you the best choices for performance and freedom.
+
+You can set the Router that best suits your needs in your configuration file
(conf/config.yaml).
Set the route that best suits your business needs in the local configuration
`conf/config.yaml`.
-- `apisix.router.http`: HTTP Request Route。
+It can have the following configurations:
+
+- `apisix.router.http`: The HTTP request route. It can take the following
values:
- - `radixtree_uri`: (Default) only use `uri` as the primary index. Support
for full and deep prefix matching based on the `radixtree` engine, see [How to
use router-radixtree](../router-radixtree.md).
- - `Absolute match`: Complete match for the given `uri`, such as
`/foo/bar`,`/foo/glo`.
- - `Prefix match`: Use `*` at the end to represent the given `uri` as a
prefix match. For example, `/foo*` allows matching `/foo/`, `/foo/a` and
`/foo/b`.
- - `match priority`: first try absolute match, if you can't hit absolute
match, try prefix match.
- - `Any filter attribute`: Allows you to specify any Nginx built-in
variable as a filter, such as URL request parameters, request headers, cookies,
and so on.
- - `radixtree_uri_with_parameter`: Like `radixtree_uri` but also support
parameter match.
- - `radixtree_host_uri`: Use `host + uri` as the primary index (based on the
`radixtree` engine), matching both host and URL for the current request.
+ - `radixtree_uri`: (Default) Only use the `uri` as the primary index. To
learn more about the support for full and deep prefix matching, check [How to
use router-radixtree](../router-radixtree.md).
+ - `Absolute match`: Match completely with the given `uri` (`/foo/bar`,
`/foo/glo`).
+ - `Prefix match`: Match with the given prefix. Use `*` to represent the
given `uri` for prefix matching. For example, `/foo*` can match with `/foo/`,
`/foo/a` and `/foo/b`.
+ - `match priority`: First try absolute match, if it didn't match, try
prefix matching.
Review comment:
```suggestion
- `match priority`: First try an absolute match, if it didn't match, try
prefix matching.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]