izumi.idealingua.runtime.rpc.http4s.ws.RawResponse.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of idealingua-v1-runtime-rpc-http4s_2.13 Show documentation
Show all versions of idealingua-v1-runtime-rpc-http4s_2.13 Show documentation
idealingua-v1-runtime-rpc-http4s
The newest version!
package izumi.idealingua.runtime.rpc.http4s.ws
import io.circe.Json
import izumi.idealingua.runtime.rpc.*
sealed trait RawResponse
object RawResponse {
final case class EmptyRawResponse() extends RawResponse
final case class GoodRawResponse(data: Json, method: IRTMethodId) extends RawResponse
final case class BadRawResponse(data: Option[Json]) extends RawResponse {
def error: String = data.map(_.noSpaces).getOrElse("N/A")
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy