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
__init__.py 文件源码
python
阅读 30
收藏 0
点赞 0
评论 0
评论列表
文章目录