TapirAdapter

caliban.interop.tapir.TapirAdapter
object TapirAdapter

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

object CalibanBody

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
case class TapirResponse(code: StatusCode, body: String, headers: List[Header])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object TapirResponse

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Types

type CalibanEndpoint[R, BS, S] = Full[Unit, Unit, (GraphQLRequest, ServerRequest), TapirResponse, (BS), S, [_] =>> RIO[R, _$1]]
type CalibanPipe = GraphQLWSInput => Either[GraphQLWSClose, GraphQLWSOutput]
type CalibanResponse[BS] = (MediaType, StatusCode, Option[String], CalibanBody[BS])
type CalibanUploadsEndpoint[R, BS, S] = Full[Unit, Unit, UploadRequest, TapirResponse, (BS), S, [_] =>> RIO[R, _$2]]
type Configurator[-R] = URIO[R & ServerRequest & Scope, Unit]

A configurator is an effect that can be run in the scope of a request and returns Unit. It is usually used to change the value of a configuration fiber ref (see the Configurator object).

A configurator is an effect that can be run in the scope of a request and returns Unit. It is usually used to change the value of a configuration fiber ref (see the Configurator object).

Attributes

type Interceptor[-R1, +R] = ZLayer[R1 & ServerRequest, TapirResponse, R]

An interceptor is a layer that takes an environment R1 and a server request, and that either fails with a TapirResponse or returns a new environment R

An interceptor is a layer that takes an environment R1 and a server request, and that either fails with a TapirResponse or returns a new environment R

Attributes

type UploadRequest = (Seq[Part[Array[Byte]]], ServerRequest)
type ZioWebSockets = ZioStreams & WebSockets

Value members

Concrete methods

def buildHttpResponse[E, BS](request: ServerRequest)(response: GraphQLResponse[E])(implicit streamConstructor: StreamConstructor[BS], responseCodec: JsonCodec[ResponseValue]): (MediaType, StatusCode, Option[String], CalibanBody[BS])
def convertHttpEndpointToFuture[R](endpoint: ServerEndpoint[ZioStreams, [_] =>> RIO[R, _$12]])(implicit runtime: Runtime[R]): ServerEndpoint[ZioStreams, Future]
def isFtv1Header(r: Header): Boolean
def outputBody[S](stream: Streams[S])(implicit codec: JsonCodec[ResponseValue]): EndpointOutput[CalibanBody[BinaryStream]]
def zioMonadError[R]: MonadError[[_] =>> RIO[R, _$15]]

Concrete fields

val errorBody: ThisType[TapirResponse]