Python aiohttp如何确定and客户端是否确认了服务器的响应

问题描述

我使用aiohttp实现了以下休息处理程序,该处理程序为授权客户发送彩票数据。

class LotteryDrawHandler:

    @auth_login
    async def get(self,request):
        status = SUCCESS_CODE
        try:
            results = LotteryDraw().get_data()
        except Exception as e:
            logger.exception(e)
            status = ERROR_CODE

        return web.json_response(data=results,status=status)

我需要检查响应是否被请求的客户端确认,如果没有,则将响应排队并发送回客户端。 我可以使用请求响应协议来实现吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)