base_resource.py 文件源码

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

项目:python-wiremock 作者: platinummonkey 项目源码 文件源码
def options(self, uri, **kwargs):  # pragma: no cover
        if 'timeout' not in kwargs:
            kwargs['timeout'] = self._timeout()
        try:
            url = self._base_url() + uri
            self._log("OPTIONS", url, **kwargs)
            return requests.options(url, **kwargs)
        except rexc.Timeout as e:  # pragma: no cover
            raise TimeoutException(-1, e)
        except rexc.ConnectionError as e:  # pragma: no cover
            raise ApiUnavailableException(-1, e)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号