Completes the request with the given ToResponseMarshallable.
The default ExecutionContext to be used for scheduling asynchronous logic related to this request.
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
.
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".
The default LoggingAdapter to be used for logging messages related to this request.
Returns a copy of this context with the HttpRequest transformed by the given function.
Returns a copy of this context with the unmatchedPath transformed by the given function.
The default Materializer.
The default ParserSettings to be used for configuring directives.
Returns a copy of this context with the given fields updated.
Completes the request with redirection response of the given type to the given URI.
Rejects the request with the given rejections.
The request this context represents.
The request this context represents. Modelled as a val
so as to enable an import ctx.request._
.
The default RoutingSettings to be used for configuring directives.
The unmatched path of this context.
The unmatched path of this context. Modelled as a val
so as to enable an import ctx.unmatchedPath._
.
Removes a potentially existing Accept header from the request headers.
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 akka.http.scaladsl.settings.ParserSettings.
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.
This class is not meant to be extended by user code.
Immutable object encapsulating the context of an akka.http.scaladsl.model.HttpRequest as it flows through a akka-http Route structure.