trait RouteDirectives extends AnyRef
- Alphabetic
- By Inheritance
- RouteDirectives
- 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() @HotSpotIntrinsicCandidate()
- def complete[T](status: Status, headers: Headers, v: => T)(implicit m: EntityEncoder[IO, T]): StandardRoute
Completes the request using the given arguments.
- def complete[T](status: Status, v: => T)(implicit m: EntityEncoder[IO, T]): StandardRoute
Completes the request using the given arguments.
- def complete(m: => ToResponseMarshallable): StandardRoute
Completes the request using the given arguments.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def failWith(error: Throwable): StandardRoute
Bubbles the given error up the response chain, where it is dealt with by the closest
handleExceptionsdirective and its ExceptionHandler. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def handle(handler: PartialFunction[Request[IO], IO[Response[IO]]], rejections: Seq[Rejection]): StandardRoute
Handle the request using an asynchronous partial function.
Handle the request using an asynchronous partial function.
This directive can be used to include external components request processing components defined as PartialFunction (like those provided by akka-grpc) into a routing tree defined as routes.
- rejections
The list of rejections to reject with if the handler is not defined for a request.
- def handle(handler: PartialFunction[Request[IO], IO[Response[IO]]]): StandardRoute
Handle the request using an asynchronous partial function.
Handle the request using an asynchronous partial function.
This directive can be used to include external components request processing components defined as PartialFunction (like those provided by akka-grpc) into a routing tree defined as routes.
When the partial function is not defined for a request, the request is rejected with an empty list of rejections which is equivalent to a "Not Found" rejection.
- def handle(handler: (Request[IO]) => IO[Response[IO]]): StandardRoute
Handle the request using a function.
- def handleSync(handler: PartialFunction[Request[IO], Response[IO]], rejections: Seq[Rejection]): StandardRoute
Handle the request using a synchronous partial function.
Handle the request using a synchronous partial function.
This directive can be used to include external components request processing components defined as PartialFunction (like those provided by akka-grpc) into a routing tree defined as routes.
- rejections
The list of rejections to reject with if the handler is not defined for a request.
- def handleSync(handler: PartialFunction[Request[IO], Response[IO]]): StandardRoute
Handle the request using a synchronous partial function.
Handle the request using a synchronous partial function.
This directive can be used to include external components request processing components defined as PartialFunction (like those provided by akka-grpc) into a routing tree defined as routes.
When the partial function is not defined for a request, the request is rejected with an empty list of rejections which is equivalent to a "Not Found" rejection.
- def handleSync(handler: (Request[IO]) => Response[IO]): StandardRoute
Handle the request using a function.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def redirect(uri: Uri, redirectionType: Status): StandardRoute
Completes the request with redirection response of the given type to the given URI.
- def reject(rejections: Rejection*): StandardRoute
Rejects the request with the given rejections.
- def reject: StandardRoute
Rejects the request with an empty set of rejections.
- 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])