Migrating
From 0.20 to 1.0
in custom server interpreters, the
RejectInterecptor
must be now disabled explicitly usingRejectInterceptor.disableWhenSingleEndpoint
when a single endpoint is being interpreted; theServerInterpreter
no longer knows about all endpoints, as it is now parametrised with a function which gives the potentially matching endpoints, given aServerRequest
the names of Prometheus and OpenTelemetry metrics have changed; there are now three metrics (requests active, total and duration), instead of the previous 4 (requests active, total, response total and duration). Moreover, the request duration metric includes an additional label - phase (either headers or body), measuring how long it takes to create the headers or the body.
Moved traits, classes, objects
server interpreters & interceptors have moved from
core
into theserver/core
moduleServerResponse
andValuedEndpointOutput
are moved tosttp.tapir.server.model
metrics classes and interceptors have moved to the
sttp.tapir.server.metrics
packageEndpoint.renderPathTemplate
is renamed toEndpoint.showPathTemplate
web socket exceptions
UnsupportedWebSocketFrameException
andWebSocketFrameDecodeFailure
are now in thesttp.tapir.model
package