Http4sAdapter

class Object
trait Matchable
class Any

Value members

Concrete methods

def convertHttpEndpointToF[F[_] : Async, R, E](endpoint: ServerEndpoint[Any, [_] =>> RIO[R, _$30]])(implicit evidence$5: Async[F], runtime: Runtime[R]): ServerEndpoint[Any, F]

If you wish to use Http4sServerInterpreter with cats-effect IO instead of ZHttp4sServerInterpreter, you can use this function to convert the tapir endpoints to their cats-effect counterpart.

If you wish to use Http4sServerInterpreter with cats-effect IO instead of ZHttp4sServerInterpreter, you can use this function to convert the tapir endpoints to their cats-effect counterpart.

def convertWebSocketEndpointToF[F[_] : Dispatcher, R, E](endpoint: ServerEndpoint[ZioWebSockets, [_] =>> RIO[R, _$34]])(implicit evidence$6: Async[F], evidence$7: Dispatcher[F], runtime: Runtime[R]): ServerEndpoint[Fs2Streams[F] & WebSockets, F]

If you wish to use Http4sServerInterpreter with cats-effect IO instead of ZHttp4sServerInterpreter, you can use this function to convert the tapir endpoints to their cats-effect counterpart.

If you wish to use Http4sServerInterpreter with cats-effect IO instead of ZHttp4sServerInterpreter, you can use this function to convert the tapir endpoints to their cats-effect counterpart.

def makeHttpService[R, E](interpreter: GraphQLInterpreter[R, E], skipValidation: Boolean, enableIntrospection: Boolean, queryExecution: QueryExecution, requestInterceptor: RequestInterceptor[R]): HttpRoutes[[_] =>> RIO[R & Clock & Blocking, _$1]]
def makeHttpServiceF[F[_] : Async, R, E](interpreter: GraphQLInterpreter[R, E], skipValidation: Boolean, enableIntrospection: Boolean, queryExecution: QueryExecution, requestInterceptor: RequestInterceptor[R])(implicit evidence$1: Async[F], runtime: Runtime[R]): HttpRoutes[F]
def makeHttpUploadService[R <: Has[_] & Random, E](interpreter: GraphQLInterpreter[R, E], skipValidation: Boolean, enableIntrospection: Boolean, queryExecution: QueryExecution, requestInterceptor: RequestInterceptor[R]): HttpRoutes[[_] =>> RIO[R & Clock & Blocking, _$3]]
def makeHttpUploadServiceF[F[_] : Async, R <: Has[_] & Random, E](interpreter: GraphQLInterpreter[R, E], skipValidation: Boolean, enableIntrospection: Boolean, queryExecution: QueryExecution, requestInterceptor: RequestInterceptor[R])(implicit evidence$2: Async[F], runtime: Runtime[R]): HttpRoutes[F]
def makeWebSocketService[R, R1 <: R, E](builder: WebSocketBuilder2[[_] =>> RIO[R & Clock & Blocking, _$5]], interpreter: GraphQLInterpreter[R1, E], skipValidation: Boolean, enableIntrospection: Boolean, keepAliveTime: Option[Duration], queryExecution: QueryExecution, requestInterceptor: RequestInterceptor[R], webSocketHooks: WebSocketHooks[R1, E]): HttpRoutes[[_] =>> RIO[R1 & Clock & Blocking, _$6]]
def makeWebSocketServiceF[F[_] : Dispatcher, R, E](builder: WebSocketBuilder2[F], interpreter: GraphQLInterpreter[R, E], skipValidation: Boolean, enableIntrospection: Boolean, keepAliveTime: Option[Duration], queryExecution: QueryExecution, requestInterceptor: RequestInterceptor[R], webSocketHooks: WebSocketHooks[R, E])(implicit evidence$3: Async[F], evidence$4: Dispatcher[F], runtime: Runtime[R]): HttpRoutes[F]
def provideLayerFromRequest[R <: Has[_]](route: HttpRoutes[[_] =>> RIO[R, _$9]], f: Request[Task] => TaskLayer[R])(implicit tagged: Tag[R]): HttpRoutes[Task]

Utility function to create an http4s middleware that can extracts something from each request and provide a layer to eliminate the ZIO environment

Utility function to create an http4s middleware that can extracts something from each request and provide a layer to eliminate the ZIO environment

Type Params
R

the environment type to eliminate

Value Params
f

a function from a request to a ZLayer

route

an http4s route

Returns

a new route without the R requirement

def provideSomeLayerFromRequest[R <: Has[_], R1 <: Has[_]](route: HttpRoutes[[_] =>> RIO[R & R1, _$16]], f: Request[[_] =>> RIO[R, _$17]] => RLayer[R, R1])(implicit tagged: Tag[R1]): HttpRoutes[[_] =>> RIO[R, _$18]]

Utility function to create an http4s middleware that can extracts something from each request and provide a layer to eliminate some part of the ZIO environment

Utility function to create an http4s middleware that can extracts something from each request and provide a layer to eliminate some part of the ZIO environment

Type Params
R

the remaining environment

R1

the environment to eliminate

Value Params
f

a function from a request to a ZLayer

route

an http4s route

Returns

a new route that requires only R