Scala read continuous http stream
问题 How can I connect to and read a continuous (chunked) http stream in scala? For example, if I have this simple service written in python/bottle: from gevent import monkey; monkey.patch_all() import gevent from bottle import route, run @route('/stream') def stream(): while True: yield 'blah\n' gevent.sleep(1) run(host='0.0.0.0', port=8100, server='gevent') I'm planning to use akka-stream to process the data, I just need a way to retrieve it. 回答1: This should work. Basically, you do a single