Package akka.http.scaladsl.testkit
Class RouteTestResultComponent.RouteTestResult
- java.lang.Object
-
- akka.http.scaladsl.testkit.RouteTestResultComponent.RouteTestResult
-
- Enclosing interface:
- RouteTestResultComponent
public static class RouteTestResultComponent.RouteTestResult extends java.lang.Object
A receptacle for the response or rejections created by a route.
-
-
Constructor Summary
Constructors Constructor Description RouteTestResult(scala.concurrent.duration.FiniteDuration timeout, akka.stream.Materializer fm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RouteTestResultComponent.RouteTestResult
awaitResult()
scala.collection.immutable.Seq<HttpEntity.ChunkStreamPart>
chunks()
akka.stream.scaladsl.Source<HttpEntity.ChunkStreamPart,java.lang.Object>
chunksStream()
ResponseEntity
entity()
Returns a "fresh" entity with a "fresh" unconsumed byte- or chunk stream (if not strict)boolean
handled()
void
handleResponse(HttpResponse r)
void
handleResult(RouteResult rr)
HttpResponse
rawResponse()
scala.collection.immutable.Seq<Rejection>
rejections()
HttpResponse
response()
-
-
-
Method Detail
-
awaitResult
public RouteTestResultComponent.RouteTestResult awaitResult()
-
chunks
public scala.collection.immutable.Seq<HttpEntity.ChunkStreamPart> chunks()
-
chunksStream
public akka.stream.scaladsl.Source<HttpEntity.ChunkStreamPart,java.lang.Object> chunksStream()
-
entity
public ResponseEntity entity()
Returns a "fresh" entity with a "fresh" unconsumed byte- or chunk stream (if not strict)
-
handleResponse
public void handleResponse(HttpResponse r)
-
handleResult
public void handleResult(RouteResult rr)
-
handled
public boolean handled()
-
rawResponse
public HttpResponse rawResponse()
-
rejections
public scala.collection.immutable.Seq<Rejection> rejections()
-
response
public HttpResponse response()
-
-