Home
last modified time | relevance | path

Searched refs:http_client (Results 1 – 25 of 40) sorted by relevance

12

/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/wsgi/
Dutil_test.py25 import six.moves.http_client
35 NOT_FOUND = wsgi_util.error(six.moves.http_client.NOT_FOUND)
50 connection = six.moves.http_client.HTTPConnection('localhost', self.port)
206 self.assertEquals(six.moves.http_client.NOT_FOUND, status)
207 self.assertEquals(six.moves.http_client.responses[six.moves.http_client.NOT_FOUND], status_text)
208 …self.assertEquals(util.pad_string(six.moves.http_client.responses[six.moves.http_client.NOT_FOUND]…
219 self.assertEquals(six.moves.http_client.OK, status)
220 self.assertEquals(six.moves.http_client.responses[six.moves.http_client.OK], status_text)
231 self.assertEquals(six.moves.http_client.OK, status)
232 self.assertEquals(six.moves.http_client.responses[six.moves.http_client.OK], status_text)
[all …]
Dservice.py31 import six.moves.http_client
49 _HTTP_BAD_REQUEST = wsgi_util.error(six.moves.http_client.BAD_REQUEST)
50 _HTTP_NOT_FOUND = wsgi_util.error(six.moves.http_client.NOT_FOUND)
51 _HTTP_UNSUPPORTED_MEDIA_TYPE = wsgi_util.error(six.moves.http_client.UNSUPPORTED_MEDIA_TYPE)
101 six.moves.http_client.METHOD_NOT_ALLOWED,
102 six.moves.http_client.responses[six.moves.http_client.METHOD_NOT_ALLOWED],
140 return send_rpc_error(six.moves.http_client.BAD_REQUEST,
151 return send_rpc_error(six.moves.http_client.BAD_REQUEST,
185 return send_rpc_error(six.moves.http_client.BAD_REQUEST,
193 return send_rpc_error(six.moves.http_client.INTERNAL_SERVER_ERROR,
[all …]
Dutil.py26 import six.moves.http_client
66 status = '%d %s' % (status, six.moves.http_client.responses.get(status, 'Unknown Error'))
120 status_message = six.moves.http_client.responses.get(status_code, 'Unknown Error')
150 not_found = error(six.moves.http_client.NOT_FOUND)
167 if int(status_code) == six.moves.http_client.NOT_FOUND:
/external/wpa_supplicant_8/src/wps/
Dhttp_client.h12 struct http_client;
23 struct http_client * http_client_addr(struct sockaddr_in *dst,
26 struct http_client *c,
29 struct http_client * http_client_url(const char *url,
32 struct http_client *c,
35 void http_client_free(struct http_client *c);
36 struct wpabuf * http_client_get_body(struct http_client *c);
37 char * http_client_get_hdr_line(struct http_client *c, const char *tag);
Dhttp_client.c21 struct http_client { struct
28 void (*cb)(void *ctx, struct http_client *c, argument
38 struct http_client *c = eloop_data; in http_client_timeout() argument
47 struct http_client *c = cookie; in http_client_got_response()
86 struct http_client *c = eloop_ctx; in http_client_tx_ready()
130 struct http_client * http_client_addr(struct sockaddr_in *dst, in http_client_addr()
133 struct http_client *c, in http_client_addr()
137 struct http_client *c; in http_client_addr()
236 struct http_client * http_client_url(const char *url, in http_client_url()
239 struct http_client *c, in http_client_url()
[all …]
Dwps_er.h29 struct http_client *http;
39 struct http_client *http;
DMakefile16 http_client.o \
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/
Dhttps_connection.py28 from boto.compat import six, http_client
31 class InvalidCertificateException(http_client.HTTPException):
41 http_client.HTTPException.__init__(self)
86 class CertValidatingHTTPSConnection(http_client.HTTPConnection):
89 default_port = http_client.HTTPS_PORT
111 http_client.HTTPConnection.__init__(self, host=host, port=port, **kwargs)
Dconnection.py64 from boto.compat import six, http_client, urlparse, quote, encodebytes
387 class HTTPResponse(http_client.HTTPResponse):
390 http_client.HTTPResponse.__init__(self, *args, **kwargs)
410 self._cached_response = http_client.HTTPResponse.read(self)
413 return http_client.HTTPResponse.read(self, amt)
506 self.http_exceptions = (http_client.HTTPException, socket.error,
507 socket.gaierror, http_client.BadStatusLine)
755 connection = http_client.HTTPSConnection(
766 connection = http_client.HTTPConnection(
807 resp = http_client.HTTPResponse(sock, strict=True, debuglevel=self.debug)
[all …]
Dcompat.py52 from boto.vendored.six.moves import filter, http_client, map, _thread, \
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/
Dhttp_wrapper.py16 from six.moves import http_client
38 http_client.MOVED_PERMANENTLY,
39 http_client.FOUND,
40 http_client.SEE_OTHER,
41 http_client.TEMPORARY_REDIRECT,
243 if isinstance(retry_args.exc, (http_client.BadStatusLine,
244 http_client.IncompleteRead,
245 http_client.ResponseNotReady)):
Dtransfer.py15 from six.moves import http_client
177 http_client.OK,
178 http_client.NO_CONTENT,
179 http_client.PARTIAL_CONTENT,
180 http_client.REQUESTED_RANGE_NOT_SATISFIABLE,
403 if response.status_code in (http_client.FORBIDDEN,
404 http_client.NOT_FOUND):
408 if response.status_code in (http_client.OK,
409 http_client.PARTIAL_CONTENT):
416 elif response.status_code == http_client.NO_CONTENT:
[all …]
Dcredentials_lib_test.py5 from six.moves import http_client
18 status = http_client.OK
21 status = http_client.BAD_REQUEST
Dtransfer_test.py6 from six.moves import http_client
95 'status': http_client.OK,
122 'status': http_client.OK,
157 'status': http_client.PARTIAL_CONTENT,
166 'status': http_client.OK,
Dutil.py10 from six.moves import http_client
54 return (o.getcode() == http_client.OK and
Dbatch.py14 from six.moves import http_client
74 set(retryable_codes + [http_client.UNAUTHORIZED]))
99 self.__http_response.status_code == http_client.UNAUTHORIZED))
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/
Dtransport_test.py19 import six.moves.http_client
253 return six.moves.http_client.HTTPConnection(*args, **kwargs)
255 original_https_connection = six.moves.http_client.HTTPSConnection
256 six.moves.http_client.HTTPSConnection = https_connection
260 six.moves.http_client.HTTPSConnection = original_https_connection
283 original_request = six.moves.http_client.HTTPConnection.request
284 six.moves.http_client.HTTPConnection.request = request_error
295 six.moves.http_client.HTTPConnection.request = original_request
298 self.ResetServer(wsgi_util.error(six.moves.http_client.INTERNAL_SERVER_ERROR,
311 self.ResetServer(wsgi_util.error(six.moves.http_client.NOT_IMPLEMENTED,
[all …]
Dtransport.py26 import six.moves.http_client
267 content = six.moves.http_client.responses.get(response.status, 'Unknown Error')
288 if response.status == six.moves.http_client.OK:
313 connection_type = six.moves.http_client.HTTPSConnection
315 connection_type = six.moves.http_client.HTTPConnection
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/tests/
Dtest_file.py43 from six.moves import http_client
160 ({'status': str(http_client.UNAUTHORIZED)}, b'Initial token expired'),
161 ({'status': str(http_client.UNAUTHORIZED)}, b'Store token expired'),
162 ({'status': str(http_client.OK)},
164 ({'status': str(http_client.OK)},
200 ({'status': str(http_client.UNAUTHORIZED)}, b'Initial token expired'),
201 ({'status': str(http_client.UNAUTHORIZED)}, b'Store token expired'),
202 ({'status': str(http_client.OK)},
204 ({'status': str(http_client.OK)}, 'echo_request_body')
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/scripts/
Doauth2l_test.py10 from six.moves import http_client
28 if self.status_code == http_client.OK:
32 self.info = str(http_client.responses[self.status_code])
318 response = _FakeResponse(http_client.OK, scopes=scopes)
329 response = _FakeResponse(http_client.OK, scopes=scopes)
338 response = _FakeResponse(http_client.BAD_REQUEST)
347 response = _FakeResponse(http_client.INTERNAL_SERVER_ERROR)
352 self.assertIn(str(http_client.responses[response.status_code]),
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/integration/sns/
Dtest_connection.py23 from boto.compat import http_client
56 https = http_client.HTTPConnection
/external/chromium-trace/catapult/third_party/webtest/webtest/
Dhttp.py16 from six.moves import http_client
36 conn = http_client.HTTPConnection(host, int(port), timeout=timeout)
40 except (socket.error, http_client.HTTPException):
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/
D__init__.py1 from boto.compat import http_client
13 self.https_connection = mock.Mock(spec=http_client.HTTPSConnection)
43 response = mock.Mock(spec=http_client.HTTPResponse)
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/webapp/
Dservice_handlers.py93 import six.moves.http_client
483 response_message = six.moves.http_client.responses.get(code, 'Unknown Error')
565 self.error(six.moves.http_client.UNSUPPORTED_MEDIA_TYPE)
568 self.__send_simple_error(six.moves.http_client.UNSUPPORTED_MEDIA_TYPE,
575 self.error(six.moves.http_client.METHOD_NOT_ALLOWED)
578 self.__send_simple_error(six.moves.http_client.METHOD_NOT_ALLOWED,
/external/libweave/src/
Ddevice_manager.cc27 provider::HttpClient* http_client, in DeviceManager() argument
41 config_.get(), component_manager_.get(), task_runner, http_client,
279 provider::HttpClient* http_client, in Create() argument
286 new DeviceManager{config_store, task_runner, http_client, network, dns_sd, in Create()

12