Http4sAdapter

class Object
trait Matchable
class Any

Value members

Concrete methods

def makeHttpService[R, E](interpreter: GraphQLInterpreter[R, E], skipValidation: Boolean, enableIntrospection: Boolean, queryExecution: QueryExecution, requestInterceptor: RequestInterceptor[R]): HttpRoutes[[_] =>> RIO[R & Clock & Blocking, _$1]]
def makeHttpUploadService[R <: Has[_] & Random, E](interpreter: GraphQLInterpreter[R, E], skipValidation: Boolean, enableIntrospection: Boolean, queryExecution: QueryExecution, requestInterceptor: RequestInterceptor[R]): HttpRoutes[[_] =>> RIO[R & Clock & Blocking, _$2]]
def makeWebSocketService[R, R1 <: R, E](builder: WebSocketBuilder2[[_] =>> RIO[R & Clock & Blocking, _$3]], 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, _$4]]
def provideLayerFromRequest[R <: Has[_]](route: HttpRoutes[[_] =>> RIO[R, _$6]], 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, _$13]], f: Request[[_] =>> RIO[R, _$14]] => RLayer[R, R1])(implicit tagged: Tag[R1]): HttpRoutes[[_] =>> RIO[R, _$15]]

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