PathMatchingSupport
com.improving.grpc_rest_gateway.runtime.handlers.PathMatchingSupport
trait PathMatchingSupport
Helper trait to make URI path matching. This is done to make testing easier.
Our aim is to match given incoming URL and match it to configured path in the protobuf.
There are two cases:
- When there is no path element, this is easy case we can have exact match, for example,
/v1/messages
. - When there is path element, we can not have exact match just by comparing two strings, for example, if configured value is
/v1/messages/{message_id}/users/{user_id}
and runtime value is/v1/messages/1/users/1
.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class GrpcGatewayHandler
Members list
In this article