Convert receive loop into Stream

Have a look at Stream.resource/3. I’m not up on current http client features so don’t know if any include what you’re looking for.