This is an asynchronous foldLeft where op is called only when the chunks are ready.
This is an asynchronous foldLeft where op is called only when the chunks are ready.
The Result is returned as a Future
This is an asynchronous foreach where 'f' is called for each ByteBuf as the data is available.
This is an asynchronous foreach where 'f' is called for each ByteBuf as the data is available.
A future is returned that is completed when 'f' has been called for each chunk.
This will be completed when the body is fully read (or an exception is thrown)
Have we started reading this request content?
Has the content been fully read successfully
Read the response body into an Array[Byte]
Read the response body into a string
Write this body to a file