__init__.py 文件源码

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

项目:mturk-crowd-beta-client-python 作者: awslabs 项目源码 文件源码
def _make_request(self, method, function_name, task_name, body=None):
        uri_path = self._build_uri_path(function_name, task_name)
        headers = self._build_aws_sigv4_headers(method, uri_path, body)
        url = _ENDPOINT + uri_path

        request = Request(
            method,
            url,
            headers=headers,
            json=body).prepare()
        logger.debug('Invoking {} on URL {} with headers={}, body={}'.format(
            request.method,
            request.url,
            json.dumps(dict(request.headers)),
            request.body))
        response = Session().send(request, timeout=_TIMEOUT_SECONDS)
        return response
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号