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
Members list
Value members
Abstract methods
Completes the request with the given ToResponseMarshallable.
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
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
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
Rejects the request with the given rejections.
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 LoggingAdapter.
Returns a copy of this context with the new HttpRequest.
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 RoutingSettings.
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
The default Materializer.