This topic created in 3122 days ago, the information mentioned may be changed or developed.
用 NodeJs 的的 Rest API 的话,对端收到了请求先返回响应然后不 return 的话继续执行函数接下去的代码:
app.get('/url', function(req, res) {
// Do something...
res.json(some_json_response);
// 继续干活
};
Python 正在查资料中,找了一会儿还没弄明白好一点的解决方案。。求助。。
2 replies • 2017-10-10 23:51:50 +08:00
 |
|
1
ivechan Oct 10, 2017
aiohttp 应该就是你想要的。 但是不用想太多,和 nodejs 的肯定有区别。
|