def writer(self, response: Dict[str, Any]):
        """将响应的python结构转化为字节,并写入到流中,同时刷新最后一次响应时间为当前时间

        Parameters:
            response (Dict[str,Any]): - 要写入给客户端的响应的python结构

        """
        responseb = self.encoder(response)
        self._stream_writer.write(responseb)
        if self.debug:
            access_logger.info("write {}".format(responseb), extra=self._extra)
        self._last_response_time = time()