Class RouteTest$

java.lang.Object
org.apache.pekko.http.scaladsl.testkit.RouteTest$

public class RouteTest$ extends Object
  • Field Details

    • MODULE$

      public static final RouteTest$ 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)