I have never actually done this but my impression reading the docs is that you’re meant to use the response in the {req, resp}
tuple (your context
) as an accumulator. You could place the chunks in the :private
field of resp
under your own key. See :private
under “Fields” at Req.Response.
Or you could use the response :body
- not sure if it would get clobbered by anything else.
It would be nice if the docs for :into
actually spelled this out as I was looking into this exact thing a couple weeks ago and had to infer that this was the intended approach. Seems like it would be a very common use case.