case class Endpoint[A, B](request: EndpointsWithCustomErrors.Request[A], response: EndpointsWithCustomErrors.Response[B]) extends Product with Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Endpoint
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Endpoint(request: EndpointsWithCustomErrors.Request[A], response: EndpointsWithCustomErrors.Response[B])
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()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def interpret[R](implementation: (A) => RIO[R, B]): PartialFunction[uzhttp.Request, ZIO[R with Blocking, HTTPError, uzhttp.Response]]
Interprets endpoint into partial function that receives uzhttp.Request and returns effect that contains uzhttp.Response, can fail with uzhttp.HTTPError and requires custom environment
R
together with Blocking.Interprets endpoint into partial function that receives uzhttp.Request and returns effect that contains uzhttp.Response, can fail with uzhttp.HTTPError and requires custom environment
R
together with Blocking.Effect cannot require only
R
because for interpreting asset endpoints we need to make calls to file system which requires blocking thread pool.- R
environment that returning effect requires
- implementation
endpoint implementation
- returns
partial function that models request, response flow
- def interpretPure(implementation: (A) => B): PartialFunction[uzhttp.Request, ZIO[Blocking, HTTPError, uzhttp.Response]]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val request: EndpointsWithCustomErrors.Request[A]
- val response: EndpointsWithCustomErrors.Response[B]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()