bosh_client.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:do-portal 作者: certeu 项目源码 文件源码
def send_body(self, body):
        """Send the body

        :param body:
        :return: A  tuple in the form
          ``(:class:`~xml.dom.minidom.Element`, String)``
        """
        out = body.toxml()
        response = \
            self.request_session.post(
                self.bosh_service.geturl(),
                data=out)
        if response.status_code == 200:
            data = response.text
        else:
            data = ''
        doc = minidom.parseString(data)
        return (doc.documentElement, data)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号