问题描述
async def docker(request):
async def sample_streaming_fn(response):
await response.write(data=dumps(log))
await asyncio.sleep(1)
return stream(sample_streaming_fn,content_type='text/event-stream')
但是它返回的数据不是sse样式。我该如何解决这个问题?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)