RouteDirectives

pl.iterators.stir.server.directives.RouteDirectives
See theRouteDirectives companion object

Attributes

Companion
object
Source
RouteDirectives.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Directives
object Directives

Members list

Value members

Concrete methods

Completes the request using the given arguments.

Completes the request using the given arguments.

Attributes

Source
RouteDirectives.scala
def complete[T](status: Status, v: => T)(implicit m: EntityEncoder[IO, T]): StandardRoute

Completes the request using the given arguments.

Completes the request using the given arguments.

Attributes

Source
RouteDirectives.scala
def complete[T](status: Status, headers: Headers, v: => T)(implicit m: EntityEncoder[IO, T]): StandardRoute

Completes the request using the given arguments.

Completes the request using the given arguments.

Attributes

Source
RouteDirectives.scala

Bubbles the given error up the response chain, where it is dealt with by the closest handleExceptions directive and its ExceptionHandler.

Bubbles the given error up the response chain, where it is dealt with by the closest handleExceptions directive and its ExceptionHandler.

Attributes

Source
RouteDirectives.scala
def handle(handler: (Request[IO]) => IO[Response[IO]]): StandardRoute

Handle the request using a function.

Handle the request using a function.

Attributes

Source
RouteDirectives.scala

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.

Attributes

Source
RouteDirectives.scala
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.

Value parameters

rejections

The list of rejections to reject with if the handler is not defined for a request.

Attributes

Source
RouteDirectives.scala
def handleSync(handler: (Request[IO]) => Response[IO]): StandardRoute

Handle the request using a function.

Handle the request using a function.

Attributes

Source
RouteDirectives.scala

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.

Attributes

Source
RouteDirectives.scala

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.

Value parameters

rejections

The list of rejections to reject with if the handler is not defined for a request.

Attributes

Source
RouteDirectives.scala
def redirect(uri: Uri, redirectionType: Status): StandardRoute

Completes the request with redirection response of the given type to the given URI.

Completes the request with redirection response of the given type to the given URI.

Attributes

Source
RouteDirectives.scala

Rejects the request with an empty set of rejections.

Rejects the request with an empty set of rejections.

Attributes

Source
RouteDirectives.scala
def reject(rejections: Rejection*): StandardRoute

Rejects the request with the given rejections.

Rejects the request with the given rejections.

Attributes

Source
RouteDirectives.scala