RequestContext

pl.iterators.stir.server.RequestContext
See theRequestContext companion object
case class RequestContext(request: Request[IO], unmatchedPath: Path)

Attributes

Companion
object
Source
RequestContext.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Completes the request with the given ToResponseMarshallable.

Completes the request with the given ToResponseMarshallable.

Attributes

Source
RequestContext.scala
def fail(error: Throwable): IO[RouteResult]

Bubbles the given error up the response chain where it is dealt with by the closest handleExceptions directive and its ExceptionHandler, unless the error is a RejectionError. In this case the wrapped rejection is unpacked and "executed".

Bubbles the given error up the response chain where it is dealt with by the closest handleExceptions directive and its ExceptionHandler, unless the error is a RejectionError. In this case the wrapped rejection is unpacked and "executed".

Attributes

Source
RequestContext.scala
def redirect(uri: Uri, redirectionType: Status): IO[RouteResult]

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
RequestContext.scala
def reject(rejections: Rejection*): IO[RouteResult]

Rejects the request with the given rejections.

Rejects the request with the given rejections.

Attributes

Source
RequestContext.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product