Home
last modified time | relevance | path

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

123

/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_docxmlrpc.py2 import httplib
67 self.client = httplib.HTTPConnection("localhost:%d" % PORT)
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_urllib2net.py75 import httplib
85 self.assertIs(httpresponse.__class__, httplib.HTTPResponse)
Dtest_normalization.py4 from httplib import HTTPException
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
/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/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/pigweed/pw_env_setup/py/pw_env_setup/cipd_setup/
Dwrapper.py34 import httplib # type: ignore
36 import http.client as httplib # type: ignore[no-redef] namespace
179 conn = httplib.HTTPSConnection(target_url)
183 conn = httplib.HTTPSConnection(url.hostname, url.port)
257 if res.status == httplib.OK: # pylint: disable=no-else-return
261 elif res.status == httplib.FOUND:
/external/oss-fuzz/projects/cpp-httplib/
DDockerfile26 RUN git clone --depth 1 https://github.com/yhirose/cpp-httplib.git cpp-httplib
28 WORKDIR cpp-httplib
/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/autotest/server/cros/faft/
Drpc_proxy.py5 import httplib
90 httplib.BadStatusLine,
132 except (StandardError, httplib.BadStatusLine, xmlrpclib.Error) as e:
/external/chromium-trace/catapult/devil/devil/android/
Dports.py8 import httplib
166 httplib.HTTPConnection(host, port, timeout=timeout)) as http:
177 except (httplib.HTTPException, socket.error) as e:
/external/autotest/client/cros/faft/
Drpc_functions.py14 import httplib
173 httplib.BAD_REQUEST,
185 httplib.FORBIDDEN,
192 httplib.BAD_REQUEST,
201 httplib.NOT_FOUND,
208 httplib.NOT_FOUND,
217 httplib.NOT_FOUND,
225 httplib.NOT_IMPLEMENTED,
233 httplib.INTERNAL_SERVER_ERROR,
/external/python/httplib2/python2/httplib2/
D__init__.py33 import httplib
125 return httplib.FakeSocket(sock, ssl_sock)
177 raise httplib.ResponseNotReady()
181 if not hasattr(httplib.HTTPResponse, "getheaders"):
182 httplib.HTTPResponse.getheaders = HTTPResponse__getheaders
1150 class HTTPConnectionWithTimeout(httplib.HTTPConnection):
1160 httplib.HTTPConnection.__init__(self, host, port, strict)
1255 class HTTPSConnectionWithTimeout(httplib.HTTPSConnection):
1279 httplib.HTTPSConnection.__init__(self, host, port=port, strict=strict)
1285 httplib.HTTPSConnection.__init__(
[all …]
/external/autotest/tko/perf_upload/
Dperf_uploader.py16 import httplib
331 except httplib.HTTPException:
/external/autotest/server/cros/ap_configurators/
Dpyauto_utils.py9 import httplib
214 conn = httplib.HTTPConnection(parsed.netloc)
/external/python/cpython2/Misc/NEWS.d/
D2.7.9.rst7 Remove the *check_hostname* parameter of httplib.HTTPSConnection. The
/external/autotest/server/site_tests/enterprise_LongevityTrackerServer/
Denterprise_LongevityTrackerServer.py12 import httplib
137 except httplib.HTTPException:
/external/autotest/client/site_tests/longevity_Tracker/
Dlongevity_Tracker.py10 import httplib
369 except httplib.HTTPException:
/external/python/cpython2/Lib/
Durllib2.py94 import httplib
496 if hasattr(httplib, 'HTTPS'):
1228 return self.do_open(httplib.HTTPConnection, req)
1232 if hasattr(httplib, 'HTTPS'):
1240 return self.do_open(httplib.HTTPSConnection, req,
Dxmlrpclib.py145 import httplib
1287 except httplib.BadStatusLine: #close after we sent request
1389 self._connection = host, httplib.HTTPConnection(chost)
1513 HTTPS = httplib.HTTPSConnection
/external/skia/bench/
Dcheck_bench_regressions.py12 import httplib
/external/skqp/bench/
Dcheck_bench_regressions.py8 import httplib

123