sttp.tapir.server.model.ValuedEndpointOutput.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
The newest version!
package sttp.tapir.server.model
import sttp.tapir.EndpointOutput
case class ValuedEndpointOutput[T](output: EndpointOutput[T], value: T) {
def prepend[U](otherOutput: EndpointOutput[U], otherValue: U): ValuedEndpointOutput[(U, T)] =
ValuedEndpointOutput(otherOutput.and(output), (otherValue, value))
def append[U](otherOutput: EndpointOutput[U], otherValue: U): ValuedEndpointOutput[(T, U)] =
ValuedEndpointOutput(output.and(otherOutput), (value, otherValue))
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy