RequestContext

org.apache.pekko.http.scaladsl.server.RequestContext

This class is not meant to be extended by user code.

Immutable object encapsulating the context of an pekko.http.scaladsl.model.HttpRequest as it flows through a pekko-http Route structure.

Attributes

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

Members list

Value members

Abstract methods

Completes the request with the given ToResponseMarshallable.

Completes the request with the given ToResponseMarshallable.

Attributes

Source
RequestContext.scala

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

The default LoggingAdapter to be used for logging messages related to this request.

The default LoggingAdapter to be used for logging messages related to this request.

Attributes

Source
RequestContext.scala

Returns a copy of this context with the HttpRequest transformed by the given function.

Returns a copy of this context with the HttpRequest transformed by the given function.

Attributes

Source
RequestContext.scala

Returns a copy of this context with the unmatchedPath transformed by the given function.

Returns a copy of this context with the unmatchedPath transformed by the given function.

Attributes

Source
RequestContext.scala

The default ParserSettings to be used for configuring directives.

The default ParserSettings to be used for configuring directives.

Attributes

Source
RequestContext.scala
def reconfigure(executionContext: ExecutionContextExecutor, materializer: Materializer, log: LoggingAdapter, settings: RoutingSettings): RequestContext

Returns a copy of this context with the given fields updated.

Returns a copy of this context with the given fields updated.

Attributes

Source
RequestContext.scala
def redirect(uri: Uri, redirectionType: Redirection): Future[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*): Future[RouteResult]

Rejects the request with the given rejections.

Rejects the request with the given rejections.

Attributes

Source
RequestContext.scala

The default RoutingSettings to be used for configuring directives.

The default RoutingSettings to be used for configuring directives.

Attributes

Source
RequestContext.scala

Removes a potentially existing Accept header from the request headers.

Removes a potentially existing Accept header from the request headers.

Attributes

Source
RequestContext.scala

Returns a copy of this context with the new HttpRequest.

Returns a copy of this context with the new HttpRequest.

Attributes

Source
RequestContext.scala

Returns a copy of this context with the new LoggingAdapter.

Returns a copy of this context with the new LoggingAdapter.

Attributes

Source
RequestContext.scala

Returns a copy of this context with the new HttpRequest.

Returns a copy of this context with the new HttpRequest.

Attributes

Source
RequestContext.scala

Returns a copy of this context with the new pekko.http.scaladsl.settings.ParserSettings.

Returns a copy of this context with the new pekko.http.scaladsl.settings.ParserSettings.

Attributes

Source
RequestContext.scala

Returns a copy of this context with the new HttpRequest.

Returns a copy of this context with the new HttpRequest.

Attributes

Source
RequestContext.scala

Returns a copy of this context with the new RoutingSettings.

Returns a copy of this context with the new RoutingSettings.

Attributes

Source
RequestContext.scala

Returns a copy of this context with the unmatched path updated to the given one.

Returns a copy of this context with the unmatched path updated to the given one.

Attributes

Source
RequestContext.scala

Abstract fields

The request this context represents. Modelled as a val so as to enable an import ctx.request._.

The request this context represents. Modelled as a val so as to enable an import ctx.request._.

Attributes

Source
RequestContext.scala

The unmatched path of this context. Modelled as a val so as to enable an import ctx.unmatchedPath._.

The unmatched path of this context. Modelled as a val so as to enable an import ctx.unmatchedPath._.

Attributes

Source
RequestContext.scala

Implicits

Implicits

The default ExecutionContext to be used for scheduling asynchronous logic related to this request.

The default ExecutionContext to be used for scheduling asynchronous logic related to this request.

Attributes

Source
RequestContext.scala
implicit def materializer: Materializer

The default Materializer.

The default Materializer.

Attributes

Source
RequestContext.scala