def response_handler(resp): if not resp.is_success: raise AQLCachePropertiesError(resp, request) return { 'mode': resp.body['mode'], 'limit': resp.body['maxResults'] }
def response_handler(resp): if not resp.is_success: raise AQLCachePropertiesError(resp, request) return format_aql_cache(resp.body)
def handler(res): if res.status_code not in HTTP_OK: raise AQLCachePropertiesError(res) return {'mode': res.body['mode'], 'limit': res.body['maxResults']}