Class RouteTest$
java.lang.Object
org.apache.pekko.http.scaladsl.testkit.RouteTest$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RouteTest$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionscala.concurrent.Future<HttpResponse>runRouteClientServer(HttpRequest request, scala.Function1<RequestContext, scala.concurrent.Future<RouteResult>> route, ServerSettings serverSettings, org.apache.pekko.actor.ActorSystem system) scala.Function1<HttpRequest,scala.concurrent.Future<HttpResponse>> toFunctionPassThroughExceptions(scala.Function1<RequestContext, scala.concurrent.Future<RouteResult>> route, org.apache.pekko.actor.ClassicActorSystemProvider system) Turn the route into a function for testing, but do not handle exceptions in any way, instead, they are bubbled out as is to the caller.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
RouteTest$
public RouteTest$()
-
-
Method Details
-
toFunctionPassThroughExceptions
public scala.Function1<HttpRequest,scala.concurrent.Future<HttpResponse>> toFunctionPassThroughExceptions(scala.Function1<RequestContext, scala.concurrent.Future<RouteResult>> route, org.apache.pekko.actor.ClassicActorSystemProvider system) Turn the route into a function for testing, but do not handle exceptions in any way, instead, they are bubbled out as is to the caller.- Parameters:
route- (undocumented)system- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.4.0
-
runRouteClientServer
public scala.concurrent.Future<HttpResponse> runRouteClientServer(HttpRequest request, scala.Function1<RequestContext, scala.concurrent.Future<RouteResult>> route, ServerSettings serverSettings, org.apache.pekko.actor.ActorSystem system)
-