Home
last modified time | relevance | path

Searched refs:httplib (Results 1 – 25 of 84) sorted by relevance

1234

/external/python/cpython2/Lib/test/
Dtest_httplib.py1 import httplib
39 raise httplib.UnimplementedFileMode()
104 conn = httplib.HTTPConnection('example.com')
132 conn = httplib.HTTPConnection('example.com')
148 conn = httplib.HTTPConnection('example.com')
161 conn = httplib.HTTPConnection('example.com')
172 conn = httplib.HTTPConnection('example.com')
182 conn = httplib.HTTPConnection('example.com')
220 conn = httplib.HTTPConnection('[2001::]:81')
228 conn = httplib.HTTPConnection('[2001:102A::]')
[all …]
Dtest_urllib.py5 import httplib
44 class FakeHTTPConnection(httplib.HTTPConnection):
59 assert httplib.HTTP._connection_class == httplib.HTTPConnection
61 httplib.HTTP._connection_class = fakehttp(fakedata)
64 httplib.HTTP._connection_class = httplib.HTTPConnection
336 fakehttp_wrapper = httplib.HTTP._connection_class
353 fakehttp_wrapper = httplib.HTTP._connection_class
Dtest_docxmlrpc.py2 import httplib
67 self.client = httplib.HTTPConnection("localhost:%d" % PORT)
Dtest_urllib2net.py75 import httplib
85 self.assertIs(httpresponse.__class__, httplib.HTTPResponse)
Dtest_urllib2.py11 import httplib
428 name = httplib.responses[self.code]
1043 real_class = httplib.HTTPConnection
1045 httplib.HTTPConnection = test_urllib.fakehttp(response1)
1046 self.addCleanup(setattr, httplib, "HTTPConnection", real_class)
1053 httplib.HTTPConnection.request = request
Dtest_normalization.py4 from httplib import HTTPException
/external/python/oauth2client/tests/contrib/
Dtest_flask_util.py24 import six.moves.http_client as httplib namespace
40 def __init__(self, status=httplib.OK, **kwargs):
255 self.assertEqual(response.status_code, httplib.FOUND)
273 self.assertEqual(response.status_code, httplib.BAD_REQUEST)
288 self.assertEqual(response.status_code, httplib.BAD_REQUEST)
293 self.assertEqual(response.status_code, httplib.BAD_REQUEST)
299 with Http2Mock(status=httplib.INTERNAL_SERVER_ERROR):
302 self.assertEqual(response.status_code, httplib.BAD_REQUEST)
312 self.assertEqual(response.status_code, httplib.BAD_REQUEST)
326 self.assertEqual(response.status_code, httplib.BAD_REQUEST)
[all …]
/external/autotest/server/cros/
Dgoofy_client.py6 import httplib
153 @retry.retry((httplib.BadStatusLine, socket.error),
171 @retry_goofy_rpc((httplib.BadStatusLine, socket.error),
232 except httplib.BadStatusLine:
236 @retry_goofy_rpc((httplib.BadStatusLine, socket.error),
280 @retry_goofy_rpc((httplib.BadStatusLine, socket.error),
296 @retry_goofy_rpc((httplib.BadStatusLine, socket.error),
394 @retry_goofy_rpc((httplib.BadStatusLine, socket.error),
Dsonic_client_utils.py8 import httplib
37 RPC_EXCEPTIONS = (httplib.BadStatusLine, socket.error, urllib2.HTTPError)
/external/python/oauth2client/oauth2client/contrib/
Dflask_util.py183 import six.moves.http_client as httplib namespace
394 httplib.BAD_REQUEST)
401 return 'Invalid request', httplib.BAD_REQUEST
408 return 'Invalid request state', httplib.BAD_REQUEST
411 return 'Invalid request state', httplib.BAD_REQUEST
416 return 'Invalid request state', httplib.BAD_REQUEST
424 return content, httplib.BAD_REQUEST
/external/owasp/sanitizer/tools/
Dgooglecode_upload.py51 import httplib
98 server = httplib.HTTPSConnection(upload_host)
198 if status in [httplib.FORBIDDEN, httplib.UNAUTHORIZED]:
/external/python/cpython2/Doc/library/
Dhttplib.rst1 :mod:`httplib` --- HTTP protocol client
4 .. module:: httplib
8 The :mod:`httplib` module has been renamed to :mod:`http.client` in Python
15 single: HTTP; httplib (standard module)
19 **Source code:** :source:`Lib/httplib.py`
64 >>> h1 = httplib.HTTPConnection('www.cwi.nl')
65 >>> h2 = httplib.HTTPConnection('www.cwi.nl:80')
66 >>> h3 = httplib.HTTPConnection('www.cwi.nl', 80)
67 >>> h3 = httplib.HTTPConnection('www.cwi.nl', 80, timeout=10)
422 Example: ``httplib.responses[httplib.NOT_FOUND]`` is ``'Not Found'``.
[all …]
Dinternet.rst29 httplib.rst
/external/chromium-trace/catapult/devil/devil/android/
Dports.py9 import httplib
160 with contextlib.closing(httplib.HTTPConnection(
172 except (httplib.HTTPException, socket.error) as e:
/external/autotest/server/hosts/
Drpc_server_tracker.py5 import httplib
187 httplib.BadStatusLine),
339 conn = httplib.HTTPConnection(host, timeout=self.timeout)
/external/python/httplib2/python2/httplib2/
D__init__.py33 import httplib
118 return httplib.FakeSocket(sock, ssl_sock)
170 raise httplib.ResponseNotReady()
174 if not hasattr(httplib.HTTPResponse, "getheaders"):
175 httplib.HTTPResponse.getheaders = HTTPResponse__getheaders
1132 class HTTPConnectionWithTimeout(httplib.HTTPConnection):
1142 httplib.HTTPConnection.__init__(self, host, port, strict)
1235 class HTTPSConnectionWithTimeout(httplib.HTTPSConnection):
1257 httplib.HTTPSConnection.__init__(
1473 class AppEngineHttpConnection(httplib.HTTPConnection):
[all …]
/external/autotest/server/cros/faft/
Drpc_proxy.py5 import httplib
75 httplib.BadStatusLine,
/external/v8/tools/release/
Dcheck_clusterfuzz.py18 import httplib
171 conn = httplib.HTTPSConnection(HOSTNAME)
/external/autotest/server/cros/multimedia/
Dremote_facade_factory.py5 import httplib
175 httplib.BadStatusLine):
225 httplib.BadStatusLine),
/external/autotest/tko/perf_upload/
Dperf_uploader.py16 import httplib
278 except httplib.HTTPException:
/external/autotest/server/cros/ap_configurators/
Dpyauto_utils.py7 import httplib
212 conn = httplib.HTTPConnection(parsed.netloc)
/external/autotest/server/site_tests/enterprise_LongevityTrackerServer/
Denterprise_LongevityTrackerServer.py12 import httplib
137 except httplib.HTTPException:
/external/python/cpython2/Misc/NEWS.d/
D2.7.9.rst7 Remove the *check_hostname* parameter of httplib.HTTPSConnection. The
/external/autotest/client/site_tests/longevity_Tracker/
Dlongevity_Tracker.py10 import httplib
369 except httplib.HTTPException:
/external/autotest/scheduler/shard/
Dshard_client.py10 import httplib
401 except httplib.HTTPException as e:

1234