title: Koa2 - How to write to response stream?
body: <p>Using Koa2 and I'm not sure how to write data to the response stream, so in Express it would be something like:</p>
  
  <pre><code>res.write('some string');
  </code></pre>
  
  <p>I understand that I can assign a stream to <code>ctx.body</code> but I'm not familiar with node.js streams too well so don't know how I would go about creating this stream.</p>