【发布时间】:2014-08-08 17:32:16
【问题描述】:
我有一个长时间运行的进程,需要在多个阶段发回数据。有没有办法用express.js发回多个回复
res.send(200, 'hello')
res.send(200, 'world')
res.end()
但是当我运行curl -X POST localhost:3001/helloworld 时,我得到的只是hello
我怎样才能发送多个回复,或者这不能用快递做?
【问题讨论】:
标签: javascript node.js express