http_client.py 文件源码

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

项目:oriskami-python 作者: oriskami 项目源码 文件源码
def request(self, method, url, headers, post_data=None):
        try:
            result = urlfetch.fetch(
                url=url,
                method=method,
                headers=headers,
                # Google App Engine doesn't let us specify our own cert bundle.
                # However, that's ok because the CA bundle they use recognizes
                # api.ubivar.com.
                validate_certificate=self._verify_ssl_certs,
                deadline=self._deadline,
                payload=post_data
            )
        except urlfetch.Error as e:
            self._handle_request_error(e, url)

        return result.content, result.status_code, result.headers
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号