package testing
Ordering
- Alphabetic
Visibility
- Public
- Protected
Type Members
- case class ShadowedEndpoint(e: Endpoint[_, _, _, _], by: Endpoint[_, _, _, _]) extends Product with Serializable
Endpoint
e1
is shadowed by endpointe2
when all requests that matche2
also matche1
.Endpoint
e1
is shadowed by endpointe2
when all requests that matche2
also matche1
. Here, "request matches endpoint" takes into account only the method & shape of the path. It does *not* take into account possible decoding failures: these might impact request-endpoint matching, and the exact behavior is determined by the sttp.tapir.server.interceptor.decodefailure.DecodeFailureHandler used.If
e2
is shadowed bye1
it means thate2
will be never called because all requests will be handled bye1
beforehand. Examples wheree2
is shadowed bye1
:e1 = endpoint.get.in("x" / paths) e2 = endpoint.get.in("x" / "y" / "x") e1 = endpoint.get.in(path[String].name("y_1") / path[String].name("y_2")) e2 = endpoint.get.in(path[String].name("y_3") / path[String].name("y_4"))
Value Members
- object FindShadowedEndpoints