Create an Iteratee which consumes and concatenates all Input chunks
Create an Iteratee which consumes and concatenates all Input chunks
Example:
// Get all chunks of input def getAll: Iteratee[Array[Byte], Array[Byte]] = Iteratee.consume[Array[Byte]]()
Chunks type should be viewable as TraversableOnce
Create an Iteratee which folds the content of the Input using a given function and an initial state
Create an Iteratee which folds the content of the Input using a given function and an initial state
Example:
// Count the number of input elements def count[E]: Iteratee[E, Int] = Iteratee.fold(0)((c, _) => c + 1)
initial state
a function folding the previous state and an input to a new state
Create an Iteratee which folds the content of the Input using a given function and an initial state
Create an Iteratee which folds the content of the Input using a given function and an initial state
It also gives the opportunity to return a Promise so that promises are combined in a complete reactive flow of logic.
initial state
a function folding the previous state and an input to a new promise of state
Create an Iteratee which folds the content of the Input using a given function and an initial state
Create an Iteratee which folds the content of the Input using a given function and an initial state
It also gives the opportunity to return a Promise so that promises are combined in a complete reactive flow of logic.
initial state
a function folding the previous state and an input to a new promise of state
the function that should be executed for every chunk
an Iteratee which executes a provided function for every chunk. Returns Done on EOF.
Example:
// Get all chunks of input def printChunks: Iteratee[String, Unit] = Iteratee.foreach[String]( s => println(s) )
an Iteratee which just ignores its input