Home
last modified time | relevance | path

Searched refs:http_response (Results 1 – 16 of 16) sorted by relevance

/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/glacier/
Dresponse.py32 def __init__(self, http_response, response_headers): argument
33 self.http_response = http_response
34 self.status = http_response.status
35 self[u'RequestId'] = http_response.getheader('x-amzn-requestid')
38 self[item_name] = http_response.getheader(header_name)
39 if http_response.status != 204:
40 if http_response.getheader('Content-Type') == 'application/json':
41 body = json.loads(http_response.read().decode('utf-8'))
43 size = http_response.getheader('Content-Length', None)
49 return self.http_response.read(amt)
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/
Dexceptions.py57 def FromResponse(cls, http_response): argument
58 return cls(http_response.info, http_response.content,
59 http_response.request_url)
131 def FromResponse(cls, http_response): argument
132 return cls(http_response.info, http_response.content,
133 http_response.request_url, http_response.retry_after)
Dbase_api.py556 def __ProcessHttpResponse(self, method_config, http_response): argument
558 if http_response.status_code not in (http_client.OK,
560 raise exceptions.HttpError.FromResponse(http_response)
561 if http_response.status_code == http_client.NO_CONTENT:
564 http_response = http_wrapper.Response(
565 info=http_response.info, content='{}',
566 request_url=http_response.request_url)
568 return http_response.content
573 response_type, http_response.content)
665 http_response = None
[all …]
Dbase_api_test.py96 http_response = http_wrapper.Response(
101 method_config, http_response))
104 http_response.content,
105 service.ProcessHttpResponse(method_config, http_response))
Dtransfer.py818 http_response = http_wrapper.MakeRequest(http, http_request,
820 if http_response.status_code != http_client.OK:
821 raise exceptions.HttpError.FromResponse(http_response)
823 self.__server_chunk_granularity = http_response.info.get(
825 url = http_response.info['location']
Dbatch.py108 def HandleResponse(self, http_response, exception): argument
120 self.__http_response = http_response
Dbatch_test.py52 def ProcessHttpResponse(self, _, http_response): argument
53 return http_response
/external/libmicrohttpd/src/examples/
Dmhd2spdy_http.c298 proxy->http_response = MHD_create_response_from_callback (MHD_SIZE_UNKNOWN, in http_cb_request()
304 if (NULL == proxy->http_response) in http_cb_request()
307 if(MHD_NO == MHD_add_response_header (proxy->http_response, in http_cb_request()
310 if(MHD_NO == MHD_add_response_header (proxy->http_response, in http_cb_request()
313 if(MHD_NO == MHD_add_response_header (proxy->http_response, in http_cb_request()
352 if(MHD_NO == MHD_add_response_header (proxy->http_response, in http_create_response()
360 if(MHD_NO == MHD_queue_response (proxy->http_connection, proxy->status, proxy->http_response)){ in http_create_response()
367 MHD_destroy_response (proxy->http_response); in http_create_response()
368 proxy->http_response = NULL; in http_create_response()
390 if(NULL != proxy->http_response) in http_cb_request_completed()
[all …]
Dmhd2spdy_structures.h106 struct MHD_Response *http_response; member
/external/google-breakpad/src/client/windows/sender/
Dcrash_report_sender.cc70 int http_response = 0; in SendCrashReport() local
73 &http_response); in SendCrashReport()
78 } else if (http_response >= 400 && http_response < 500) { in SendCrashReport()
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/roboto/
Dawsqueryrequest.py202 if self.http_response is not None:
203 retval = self.http_response.status
209 if self.http_response is not None:
210 retval = self.http_response.reason
297 self.http_response = conn.make_request(self.name(),
300 self.body = self.http_response.read()
302 if self.http_response.status == 200:
309 boto.log.error('%s %s' % (self.http_response.status,
310 self.http_response.reason))
312 raise conn.ResponseError(self.http_response.status,
[all …]
/external/autotest/frontend/afe/
Dviews.py49 http_response = HttpResponse(content)
52 http_response[header] = value
53 return http_response
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/glacier/
Dtest_job.py59 http_response = mock.Mock(read=mock.Mock(return_value='xyz'))
60 response = GlacierResponse(http_response, None)
69 self.assertEqual(http_response.read.return_value, fileobj.read())
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/
D__init__.py73 http_response = self.create_response(status_code, reason, header, body)
74 self.https_connection.getresponse.return_value = http_response
/external/google-breakpad/src/common/windows/
Dhttp_upload.cc182 int http_response = wcstol(http_status, NULL, 10); in SendRequest() local
184 *response_code = http_response; in SendRequest()
187 bool result = (http_response == 200); in SendRequest()
/external/chromium-trace/catapult/third_party/gsutil/gslib/
Dgcs_json_api.py963 http_response = apitools_upload.StreamMedia(
971 http_response = apitools_upload.StreamInChunks(
975 self.api_client.objects.GetMethodConfig('Insert'), http_response)