Koa.js framework provides the response.attachment method to prompt file for download on the client.