sttp.tapir.server.interceptor.DecodeSuccessContext.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tapir-server_native0.5_2.12 Show documentation
Show all versions of tapir-server_native0.5_2.12 Show documentation
Core classes for server interpreters & interceptors
package sttp.tapir.server.interceptor
import sttp.tapir.Endpoint
import sttp.tapir.model.ServerRequest
import sttp.tapir.server.ServerEndpoint
case class DecodeSuccessContext[F[_], A, U, I](
serverEndpoint: ServerEndpoint.Full[A, U, I, _, _, _, F],
securityInput: A,
principal: U,
input: I,
request: ServerRequest
) {
def endpoint: Endpoint[A, I, _, _, _] = serverEndpoint.endpoint
}