lightstreamer.py 文件源码

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

项目:nadex 作者: knoguchi 项目源码 文件源码
def _call(self, base_url, url, body):
        """Open a network connection and performs HTTP Post
        with provided body.
        """
        # Combines the "base_url" with the
        # required "url" to be used for the specific request.
        url = urljoin(base_url.geturl(), url)
        headers = {'User-Agent': 'Lightstreamer iOS client/1.2.7'}
        req = Request(url)
        for k, v in headers.items():
            req.add_header(k, v)
        return urlopen(req, data=self._encode_params(body))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号