Skip to content

Commit 1a3be84

Browse files
docs
Signed-off-by: Abhishek Choudhary <shreemaan.abhishek@gmail.com>
1 parent 817f68c commit 1a3be84

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

docs/en/latest/plugins/grpc-web.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,6 @@ curl http://127.0.0.1:9180/apisix/admin/routes/1 -H "X-API-KEY: $admin_key" -X P
6868
}'
6969
```
7070

71-
:::info IMPORTANT
72-
73-
While using the `grpc-web` Plugin, always use a prefix matching pattern (`/*`, `/grpc/example/*`) for matching Routes. This is because the gRPC Web client passes the package name, the service interface name, the method name and other information in the proto in the URI. For example, `/path/a6.RouteService/Insert`.
74-
75-
So, when absolute matching is used, the Plugin would not be hit and the information from the proto would not be extracted.
76-
77-
:::
78-
7971
## Example usage
8072

8173
Refer to [gRPC-Web Client Runtime Library](https://www.npmjs.com/package/grpc-web) or [Apache APISIX gRPC Web Test Framework](https://github.com/apache/apisix/tree/master/t/plugin/grpc-web) to learn how to setup your web client.

0 commit comments

Comments
 (0)