sealed trait Http[-R, +Err, -In, +Out] extends AnyRef
Ordering
- Alphabetic
- By Inheritance
Inherited
- Http
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ++[R1 <: R, Err1 >: Err, In1 <: In, Out1 >: Out](that: Http[R1, Err1, In1, Out1])(implicit trace: Trace): Http[R1, Err1, In1, Out1]
Combines two Http into one.
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def >>>[R1 <: R, Err1 >: Err, In1 >: Out, Out1](handler: Handler[R1, Err1, In1, Out1])(implicit trace: Trace): Http[R1, Err1, In, Out1]
Pipes the output of one app into the other
- final def @@[LowerEnv <: UpperEnv, UpperEnv <: R, LowerErr >: Err, UpperErr >: LowerErr, In1 <: In](aspect: HttpAppMiddleware[LowerEnv, UpperEnv, LowerErr, UpperErr])(implicit trace: Trace, in: <:<[In1, Request], out: <:<[Out, Response]): Http[(aspect)#OutEnv[UpperEnv], (aspect)#OutErr[LowerErr], Request, Response]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def defaultWith[R1 <: R, Err1 >: Err, In1 <: In, Out1 >: Out](that: Http[R1, Err1, In1, Out1])(implicit trace: Trace): Http[R1, Err1, In1, Out1]
Named alias for
++
- 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() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def map[Out1](f: (Out) => Out1)(implicit trace: Trace): Http[R, Err, In, Out1]
Transforms the output of the http app
- final def mapError[Err1](f: (Err) => Err1)(implicit trace: Trace): Http[R, Err1, In, Out]
Transforms the failure of the http app
- final def mapZIO[R1 <: R, Err1 >: Err, Out1](f: (Out) => ZIO[R1, Err1, Out1])(implicit trace: Trace): Http[R1, Err1, In, Out1]
Transforms the output of the http effectfully
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def provideEnvironment(r: ZEnvironment[R])(implicit trace: Trace): Http[Any, Err, In, Out]
Provides the environment to Http.
- final def provideLayer[Err1 >: Err, R0](layer: ZLayer[R0, Err1, R])(implicit trace: Trace): Http[R0, Err1, In, Out]
Provides layer to Http.
- final def provideSomeEnvironment[R1](f: (ZEnvironment[R1]) => ZEnvironment[R])(implicit trace: Trace): Http[R1, Err, In, Out]
Provides some of the environment to Http.
- final def provideSomeLayer[R0, R1, Err1 >: Err](layer: ZLayer[R0, Err1, R1])(implicit arg0: Tag[R1], ev: <:<[R0 with R1, R], trace: Trace): Http[R0, Err1, In, Out]
Provides some of the environment to Http leaving the remainder
R0
. - final def runHandler(in: In)(implicit trace: Trace): ZIO[R, Err, Option[Handler[R, Err, In, Out]]]
- final def runZIO(in: In)(implicit trace: Trace): ZIO[R, Option[Err], Out]
- final def runZIOOrNull(in: In)(implicit unsafe: Unsafe, trace: Trace): ZIO[R, Err, Out]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def tapAllZIO[R1 <: R, Err1 >: Err](onFailure: (Cause[Err]) => ZIO[R1, Err1, Any], onSuccess: (Out) => ZIO[R1, Err1, Any], onUnhandled: ZIO[R1, Err1, Any])(implicit trace: Trace): Http[R1, Err1, In, Out]
Returns an Http that effectfully peeks at the success, failed, defective or empty value of this Http.
- final def tapErrorCauseZIO[R1 <: R, Err1 >: Err](f: (Cause[Err]) => ZIO[R1, Err1, Any])(implicit trace: Trace): Http[R1, Err1, In, Out]
- final def tapErrorZIO[R1 <: R, Err1 >: Err](f: (Err) => ZIO[R1, Err1, Any])(implicit trace: Trace): Http[R1, Err1, In, Out]
Returns an Http that effectfully peeks at the failure of this Http.
- final def tapUnhandledZIO[R1 <: R, Err1 >: Err](f: ZIO[R1, Err1, Any])(implicit trace: Trace): Http[R1, Err1, In, Out]
- final def tapZIO[R1 <: R, Err1 >: Err](f: (Out) => ZIO[R1, Err1, Any])(implicit trace: Trace): Http[R1, Err1, In, Out]
Returns an Http that effectfully peeks at the success of this Http.
- final def toHandler[R1 <: R, Err1 >: Err, In1 <: In, Out1 >: Out](default: Handler[R1, Err1, In1, Out1])(implicit trace: Trace): Handler[R1, Err1, In1, Out1]
- final def toSocketApp(implicit ev1: <:<[WebSocketChannelEvent, In], ev2: <:<[Err, Throwable], trace: Trace): SocketApp[R]
Converts an Http into a websocket application
- 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])
- final def when[In1 <: In](f: (In1) => Boolean)(implicit trace: Trace): Http[R, Err, In1, Out]
Applies Http based only if the condition function evaluates to true
- final def whenZIO[R1 <: R, Err1 >: Err, In1 <: In](f: (In1) => ZIO[R1, Err1, Boolean])(implicit trace: Trace): Http[R1, Err1, In1, Out]
- final def withDefaultErrorResponse(implicit trace: Trace, ev1: <:<[Request, In], ev2: <:<[Out, Response]): App[R]