sealed trait Route[-Env, +Err] extends AnyRef

Self Type
Route[Env, Err]
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Route
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def location: Trace

    The location where the route was created, which is useful for debugging purposes.

  2. abstract def routePattern: RoutePattern[_]

    The route pattern over which the route is defined.

    The route pattern over which the route is defined. The route can only handle requests that match this route pattern.

  3. abstract def toHandler(implicit ev: <:<[Err, Response], trace: Trace): Handler[Env, Response, Request, Response]

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def apply(request: Request)(implicit ev: <:<[Err, Response], trace: Trace): ZIO[Env, Response, Response]

    Applies the route to the specified request.

    Applies the route to the specified request. The route must be defined for the request, or else this method will fail fatally. Note that you may only call this function when you have handled all errors produced by the route, converting them into responses.

  5. def asErrorType[Err2](implicit ev: <:<[Err, Err2]): Route[Env, Err2]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  11. final def handleError(f: (Err) => Response)(implicit trace: Trace): Route[Env, Nothing]

    Handles the error of the route.

    Handles the error of the route. This method can be used to convert a route that does not handle its errors into one that does handle its errors.

  12. final def handleErrorCause(f: (Cause[Err]) => Response)(implicit trace: Trace): Route[Env, Nothing]

    Handles the error of the route.

    Handles the error of the route. This method can be used to convert a route that does not handle its errors into one that does handle its errors.

  13. final def handleErrorCauseZIO(f: (Cause[Err]) => ZIO[Any, Nothing, Response])(implicit trace: Trace): Route[Env, Nothing]
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  15. final def isDefinedAt(request: Request): Boolean

    Determines if the route is defined for the specified request.

  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  20. final def provideEnvironment(env: ZEnvironment[Env]): Route[Any, Err]
  21. final def sandbox(implicit trace: Trace): Route[Env, Nothing]

    Returns a route that automatically translates all failures into responses, using best-effort heuristics to determine the appropriate HTTP status code, and attaching error details using the HTTP header Warning.

  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. final def toHttpApp(implicit ev: <:<[Err, Response]): HttpApp[Env]
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. def transform[Env1](f: (Handler[Env, Response, Request, Response]) => Handler[Env1, Response, Request, Response]): Route[Env1, Err]
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped