+htp #18837 implemented JavaDSL for Source streaming
This commit is contained in:
parent
24454f7f09
commit
db880a3db0
26 changed files with 708 additions and 276 deletions
|
|
@ -105,7 +105,7 @@ class JsonStreamingExamplesSpec extends RoutingSpec {
|
|||
val route =
|
||||
path("metrics") {
|
||||
// [4] extract Source[Measurement, _]
|
||||
entity(stream[Measurement]) { measurements =>
|
||||
entity(asSourceOf[Measurement]) { measurements =>
|
||||
println("measurements = " + measurements)
|
||||
val measurementsSubmitted: Future[Int] =
|
||||
measurements
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue