Builder

org.apache.pekko.http.scaladsl.server.RejectionHandler.Builder
final class Builder

Attributes

Source
RejectionHandler.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def handle(pf: PartialFunction[Rejection, Route]): this.type

Handles a single Rejection with the given partial function.

Handles a single Rejection with the given partial function.

Attributes

Source
RejectionHandler.scala
def handleAll[T <: Rejection : ClassTag](f: (Seq[T]) => Route): this.type

Handles several Rejections of the same type at the same time. The seq passed to the given function is guaranteed to be non-empty.

Handles several Rejections of the same type at the same time. The seq passed to the given function is guaranteed to be non-empty.

Attributes

Source
RejectionHandler.scala

Convenience method for handling rejections created by the onCompleteWithBreaker directive. Signals that the request was rejected because the supplied circuit breaker is open and requests are failing fast.

Convenience method for handling rejections created by the onCompleteWithBreaker directive. Signals that the request was rejected because the supplied circuit breaker is open and requests are failing fast.

Use to customise the error response being written instead of the default ServiceUnavailable response.

Attributes

Source
RejectionHandler.scala
def handleNotFound(route: Route): this.type

Handles the special "not found" case using the given Route.

Handles the special "not found" case using the given Route.

Attributes

Source
RejectionHandler.scala