Seals a route by wrapping it with explicit exception handling and rejection conversion.
Seals a route by wrapping it with explicit exception handling and rejection conversion.
A sealed route has these properties:
Success(RouteResult.Complete(response))
, never a failed future and never a rejected route. These
will be already be handled using the implicitly given RejectionHandler and ExceptionHandler (or
the default handlers if none are given or can be found implicitly).Seals a route by wrapping it with default exception handling and rejection conversion.
Seals a route by wrapping it with default exception handling and rejection conversion.
A sealed route has these properties:
Success(RouteResult.Complete(response))
, never a failed future and never a rejected route. These
will be already be handled using the implicitly given RejectionHandler and ExceptionHandler (or
the default handlers if none are given or can be found implicitly).Seals a route by wrapping it with explicit exception handling and rejection conversion.
Seals a route by wrapping it with explicit exception handling and rejection conversion.
A sealed route has these properties:
Success(RouteResult.Complete(response))
, never a failed future and never a rejected route. These
will be already be handled using the implicitly given RejectionHandler and ExceptionHandler (or
the default handlers if none are given or can be found implicitly).(Since version 10.1.1) Use the variant without RoutingSettings, ParserSettings parameters.
Seals a route by wrapping it with explicit exception handling and rejection conversion.
Seals a route by wrapping it with explicit exception handling and rejection conversion.
A sealed route has these properties:
Success(RouteResult.Complete(response))
, never a failed future and never a rejected route. These
will be already be handled using the implicitly given RejectionHandler and ExceptionHandler (or
the default handlers if none are given or can be found implicitly).Use the variant without ActorSystem and Materializer
Seals a route by wrapping it with default exception handling and rejection conversion.
Seals a route by wrapping it with default exception handling and rejection conversion.
A sealed route has these properties:
Success(RouteResult.Complete(response))
, never a failed future and never a rejected route. These
will be already be handled using the implicitly given RejectionHandler and ExceptionHandler (or
the default handlers if none are given or can be found implicitly).Use the variant without ActorSystem and Materializer
Converts to the Scala DSL form of an Route.
In the Java DSL, a Route can only consist of combinations of the built-in directives. A Route can not be instantiated directly.
However, the built-in directives may be combined methods like:
The above example will invoke [inner] whenever the path "fixed/{test}" is matched, where "{test}" is the actual String that was given as method argument.