@amzn_request_id
def bucket_response(self, request, full_url, headers):
    self.method = request.method
    self.path = self._get_path(request)
    self.headers = request.headers
    if ('host' not in self.headers):
        self.headers['host'] = urlparse(full_url).netloc
    try:
        response = self._bucket_response(request, full_url, headers)
    except S3ClientError as s3error:
        response = (s3error.code, {}, s3error.description)
    return self._send_response(response)
@amzn_request_id
def bucket_response(self, request, full_url, headers):
    self.method = request.method
    self.path = self._get_path(request)
    self.headers = request.headers
    if ('host' not in self.headers):
        self.headers['host'] = urlparse(full_url).netloc
    try:
        response = self._bucket_response(request, full_url, headers)
    except S3ClientError as s3error:
        response = (s3error.code, {}, s3error.description)
    return self._send_response(response)