object Http4sAdapter
- Alphabetic
- By Inheritance
- Http4sAdapter
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def convertHttpEndpointToF[F[_], R, E](endpoint: ServerEndpoint[Any, [β$23$]ZIO[R, Throwable, β$23$]])(implicit arg0: Async[F], runtime: Runtime[R]): ServerEndpoint[Any, F]
If you wish to use
Http4sServerInterpreterwith cats-effect IO instead ofZHttp4sServerInterpreter, you can use this function to convert the tapir endpoints to their cats-effect counterpart. - def convertWebSocketEndpointToF[F[_], R, E](endpoint: ServerEndpoint[ZioWebSockets, [β$24$]ZIO[R, Throwable, β$24$]])(implicit arg0: Async[F], arg1: Dispatcher[F], runtime: Runtime[R]): ServerEndpoint[Fs2Streams[F] with WebSockets, F]
If you wish to use
Http4sServerInterpreterwith cats-effect IO instead ofZHttp4sServerInterpreter, you can use this function to convert the tapir endpoints to their cats-effect counterpart. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def makeHttpService[R, E](interpreter: GraphQLInterpreter[R, E], skipValidation: Boolean = false, enableIntrospection: Boolean = true, queryExecution: QueryExecution = QueryExecution.Parallel, requestInterceptor: RequestInterceptor[R] = RequestInterceptor.empty): HttpRoutes[[β$0$]ZIO[R with Has[Service] with Has[Service], Throwable, β$0$]]
- def makeHttpServiceF[F[_], R, E](interpreter: GraphQLInterpreter[R, E], skipValidation: Boolean = false, enableIntrospection: Boolean = true, queryExecution: QueryExecution = QueryExecution.Parallel, requestInterceptor: RequestInterceptor[R] = RequestInterceptor.empty)(implicit arg0: Async[F], runtime: Runtime[R]): HttpRoutes[F]
- def makeHttpUploadService[R <: Has[_] with Random, E](interpreter: GraphQLInterpreter[R, E], skipValidation: Boolean = false, enableIntrospection: Boolean = true, queryExecution: QueryExecution = QueryExecution.Parallel, requestInterceptor: RequestInterceptor[R] = RequestInterceptor.empty): HttpRoutes[[β$1$]ZIO[R with Has[Service] with Has[Service], Throwable, β$1$]]
- def makeHttpUploadServiceF[F[_], R <: Has[_] with Random, E](interpreter: GraphQLInterpreter[R, E], skipValidation: Boolean = false, enableIntrospection: Boolean = true, queryExecution: QueryExecution = QueryExecution.Parallel, requestInterceptor: RequestInterceptor[R] = RequestInterceptor.empty)(implicit arg0: Async[F], runtime: Runtime[R]): HttpRoutes[F]
- def makeWebSocketService[R, R1 <: R, E](builder: WebSocketBuilder2[[β$2$]ZIO[R with Has[Service] with Has[Service], Throwable, β$2$]], interpreter: GraphQLInterpreter[R1, E], skipValidation: Boolean = false, enableIntrospection: Boolean = true, keepAliveTime: Option[Duration] = None, queryExecution: QueryExecution = QueryExecution.Parallel, requestInterceptor: RequestInterceptor[R] = RequestInterceptor.empty, webSocketHooks: WebSocketHooks[R1, E] = WebSocketHooks.empty): HttpRoutes[[β$3$]ZIO[R1 with Has[Service] with Has[Service], Throwable, β$3$]]
- def makeWebSocketServiceF[F[_], R, E](builder: WebSocketBuilder2[F], interpreter: GraphQLInterpreter[R, E], skipValidation: Boolean = false, enableIntrospection: Boolean = true, keepAliveTime: Option[Duration] = None, queryExecution: QueryExecution = QueryExecution.Parallel, requestInterceptor: RequestInterceptor[R] = RequestInterceptor.empty, webSocketHooks: WebSocketHooks[R, E] = WebSocketHooks.empty)(implicit arg0: Async[F], arg1: Dispatcher[F], runtime: Runtime[R]): HttpRoutes[F]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def provideLayerFromRequest[R <: Has[_]](route: HttpRoutes[[β$5$]ZIO[R, Throwable, β$5$]], f: (Request[Task]) => TaskLayer[R])(implicit tagged: zio.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
- R
the environment type to eliminate
- route
an http4s route
- f
a function from a request to a ZLayer
- returns
a new route without the R requirement
- def provideSomeLayerFromRequest[R <: Has[_], R1 <: Has[_]](route: HttpRoutes[[β$11$]ZIO[R with R1, Throwable, β$11$]], f: (Request[[β$12$]ZIO[R, Throwable, β$12$]]) => RLayer[R, R1])(implicit tagged: zio.Tag[R1]): HttpRoutes[[β$13$]ZIO[R, Throwable, β$13$]]
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
- R
the remaining environment
- R1
the environment to eliminate
- route
an http4s route
- f
a function from a request to a ZLayer
- returns
a new route that requires only R
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated