Home
last modified time | relevance | path

Searched refs:httplib2 (Results 1 – 25 of 124) sorted by relevance

12345

/external/python/httplib2/doc/html/
Dobjects.inv2 # Project: httplib2
4 httplib2 mod libhttplib2.html
5 httplib2.ProxyInfo class libhttplib2.html
6 httplib2.Cache.set method libhttplib2.html
7 httplib2.Http class libhttplib2.html
8 httplib2.Cache.delete method libhttplib2.html
9 httplib2.Http.follow_all_redirects attribute libhttplib2.html
10 httplib2.RelativeURIError exception libhttplib2.html
11 httplib2.Http.follow_redirects attribute libhttplib2.html
12 httplib2.RETRIES data libhttplib2.html
[all …]
/external/python/httplib2/tests/
Dtest_uri.py1 import httplib2
26 assert httplib2.parse_uri(a) == b
38 assert httplib2.urlnorm(a)[-1] == b
40 assert httplib2.urlnorm("http://localhost:80/") == httplib2.urlnorm(
45 httplib2.urlnorm("/")
47 except httplib2.RelativeURIError:
72 httplib2.urlnorm("http://WWW")[-1],
73 httplib2.safename(httplib2.urlnorm("http://www")[-1]),
102 result = httplib2.safename(data[0])
107 assert httplib2.safename("http://www") != httplib2.safename("https://www")
[all …]
Dtest_proxy.py11 import httplib2
25 pi = httplib2.proxy_info_from_url("http://myproxy.example.com")
32 pi = httplib2.proxy_info_from_url("http://zoidberg:fish@someproxy:99")
42 pi = httplib2.proxy_info_from_environment()
51 pi = httplib2.proxy_info_from_environment("https")
58 pi = httplib2.proxy_info_from_environment()
66 pi = httplib2.proxy_info_from_environment()
79 pi = httplib2.proxy_info_from_environment()
88 pi = httplib2.proxy_info_from_environment()
95 pi = httplib2.ProxyInfo(
[all …]
Dtest_other.py1 import httplib2
21 httplib2._convert_byte_str(4)
22 assert httplib2._convert_byte_str(b"Hello") == "Hello"
23 assert httplib2._convert_byte_str("World") == "World"
27 http = httplib2.Http()
42 http = httplib2.Http(cache=tests.get_cache_path())
55 http = httplib2.Http()
63 http = httplib2.Http()
87 http = httplib2.Http()
102 http = httplib2.Http(timeout=0.1)
[all …]
Dtest_auth.py1 import httplib2
8 c = httplib2.Credentials()
27 http = httplib2.Http()
42 http = httplib2.Http()
61 http = httplib2.Http()
82 http = httplib2.Http()
98 http = httplib2.Http()
109 info = httplib2._parse_www_authenticate(response1, "authentication-info")
114 info2 = httplib2._parse_www_authenticate(response2, "authentication-info")
118 info3 = httplib2._parse_www_authenticate(response3, "authentication-info")
[all …]
Dtest_http.py7 import httplib2
21 http = httplib2.Http()
31 http = httplib2.Http()
32 old_retries = httplib2.RETRIES
33 httplib2.RETRIES = 1
41 httplib2.RETRIES = old_retries
45 http = httplib2.Http()
47 with tests.assert_raises(httplib2.ServerNotFoundError):
67 http = httplib2.Http()
81 http = httplib2.Http()
[all …]
Dtest_cacerts_from_env.py6 import httplib2
9 CA_CERTS_BUILTIN = os.path.join(os.path.dirname(httplib2.__file__), "cacerts.txt")
35 assert httplib2.certs.where() == CA_CERTS_BUILTIN
42 assert httplib2.certs.where() == ca_certs_tmpfile
45 httplib2.certs.where()
47 assert httplib2.certs.where() == CA_CERTS_BUILTIN
54 assert httplib2.certs.where() == CERTIFI_CERTS_FILE
61 assert httplib2.certs.where() == CUSTOM_CA_CERTS
70 assert httplib2.certs.where() == ca_certs_tmpfile
72 assert httplib2.certs.where() == CA_CERTS_BUILTIN
Dtest_cache.py2 import httplib2
13 http = httplib2.Http(cache=tests.get_cache_path())
25 http = httplib2.Http(cache=tests.get_cache_path())
39 http = httplib2.Http()
71 http = httplib2.Http(cache=tests.get_cache_path())
98 http = httplib2.Http(cache=tests.get_cache_path())
137 http = httplib2.Http(cache=tests.get_cache_path())
155 http = httplib2.Http(cache=tests.get_cache_path())
180 http = httplib2.Http(cache=tests.get_cache_path())
201 http = httplib2.Http(cache=tests.get_cache_path())
[all …]
Dtest_encoding.py1 import httplib2
7 http = httplib2.Http()
20 http = httplib2.Http()
35 http = httplib2.Http()
48 http = httplib2.Http()
55 with tests.assert_raises(httplib2.FailedToDecompressContent):
68 http = httplib2.Http()
83 http = httplib2.Http()
89 with tests.assert_raises(httplib2.FailedToDecompressContent):
Dtest_https.py1 import httplib2
11 http = httplib2.Http(ca_certs=tests.CA_CERTS)
18 http = httplib2.Http(ca_certs=tests.CA_CERTS)
39 http = httplib2.Http(ca_certs=tests.CA_CERTS)
54 http = httplib2.Http(ca_certs="/nosuchfile")
63 http = httplib2.Http(ca_certs=tests.CA_UNUSED_CERTS)
70 except httplib2.SSLHandshakeError: # Python2
83 http = httplib2.Http(tls_minimum_version="TLSv1_2")
101 http = httplib2.Http(tls_maximum_version="TLSv1_2")
120 http = httplib2.Http(ca_certs=tests.CA_CERTS, tls_minimum_version="TLSv1_2")
[all …]
/external/python/httplib2/python2/
Dhttplib2test_appengine.py34 global httplib2
35 import httplib2
38 httplib2.SCHEME_TO_CONNECTION["https"], httplib2.AppEngineHttpsConnection
41 httplib2.SCHEME_TO_CONNECTION["http"], httplib2.AppEngineHttpConnection
51 global httplib2
52 import httplib2
54 reload(httplib2)
62 httplib2.SCHEME_TO_CONNECTION["https"], httplib2.AppEngineHttpsConnection
65 httplib2.SCHEME_TO_CONNECTION["http"], httplib2.AppEngineHttpConnection
69 http = httplib2.Http()
[all …]
Dhttplib2test.py12 import httplib2
40 c = httplib2.Credentials()
61 httplib2.parse_uri("http://example.com"),
65 httplib2.parse_uri("https://example.com"),
69 httplib2.parse_uri("https://example.com:8080"),
73 httplib2.parse_uri("http://example.com/"),
77 httplib2.parse_uri("http://example.com/path"),
81 httplib2.parse_uri("http://example.com/path?a=1&b=2"),
85 httplib2.parse_uri("http://example.com/path?a=1&b=2#fred"),
89 httplib2.parse_uri("http://example.com/path?a=1&b=2#fred"),
[all …]
Dssl_protocol_test.py3 import httplib2
13 http = httplib2.Http(ca_certs="/nosuchfile")
25 os.path.dirname(os.path.abspath(httplib2.__file__)),
29 http = httplib2.Http(ca_certs=other_ca_certs)
31 with self.assertRaises(httplib2.SSLHandshakeError):
35 http = httplib2.Http(ssl_version=ssl.PROTOCOL_TLSv1)
46 http = httplib2.Http(ssl_version=ssl.PROTOCOL_SSLv3)
54 with self.assertRaises(httplib2.SSLHandshakeError):
58 except httplib2.SSLHandshakeError as e:
/external/python/httplib2/
DCHANGELOG5 https://github.com/httplib2/httplib2/issues/169
17 https://github.com/httplib2/httplib2/pull/168
22 https://github.com/httplib2/httplib2/pull/163
28 https://github.com/httplib2/httplib2/issues/161
33 https://github.com/httplib2/httplib2/issues/160
40 https://github.com/httplib2/httplib2/issues/156
45 https://github.com/httplib2/httplib2/issues/151
48 https://github.com/httplib2/httplib2/issues/154
53 https://github.com/httplib2/httplib2/pull/150
56 https://github.com/httplib2/httplib2/pull/143
[all …]
DMakefile15 DST = dist/httplib2-$(VERSION)
29 -rm -rf dist/httplib2-$(VERSION)
30 -rm dist/httplib2-$(VERSION).tar.gz
31 -rm dist/httplib2-$(VERSION).zip
32 -mkdir dist/httplib2-$(VERSION)
36 cd dist && tar -czv -f httplib2-$(VERSION).tar.gz httplib2-$(VERSION)
37 cd dist && zip httplib2-$(VERSION).zip -r httplib2-$(VERSION)
38 cd dist/httplib2-$(VERSION) && python setup.py sdist --formats=gztar,zip upload
40 …e_upload.py --summary="Version $(shell python setup.py --version)" --project=httplib2 dist/*.tar.gz
41 …code_upload.py --summary="Version $(shell python setup.py --version)" --project=httplib2 dist/*.zip
[all …]
DMETADATA1 name: "httplib2"
2 description: "httplib2 is a comprehensive HTTP client library, httplib2.py supports many features l…
6 value: "https://github.com/httplib2/httplib2"
10 value: "https://github.com/httplib2/httplib2.git"
DREADME.md4 httplib2 is a comprehensive HTTP client library, httplib2.py supports many
61 $ pip install httplib2
70 import httplib2
71 h = httplib2.Http(".cache")
81 import httplib2
82 h = httplib2.Http(".cache")
92 import httplib2
93 h = httplib2.Http(".cache")
112 * https://github.com/httplib2/httplib2/wiki/Examples
113 * https://github.com/httplib2/httplib2/wiki/Examples-Python3
DAndroid.bp55 srcs: ["python3/httplib2/cacerts.txt"],
56 path: "python3/httplib2",
61 srcs: ["python2/httplib2/*.py"],
62 path: "python2/httplib2",
67 srcs: ["python3/httplib2/*.py"],
68 path: "python3/httplib2",
72 name: "py-httplib2",
75 pkg_path: "httplib2",
/external/python/httplib2/python3/
Dhttplib2test.py12 import httplib2
29 c = httplib2.Credentials()
50 httplib2.parse_uri("http://example.com"),
54 httplib2.parse_uri("https://example.com"),
58 httplib2.parse_uri("https://example.com:8080"),
62 httplib2.parse_uri("http://example.com/"),
66 httplib2.parse_uri("http://example.com/path"),
70 httplib2.parse_uri("http://example.com/path?a=1&b=2"),
74 httplib2.parse_uri("http://example.com/path?a=1&b=2#fred"),
78 httplib2.parse_uri("http://example.com/path?a=1&b=2#fred"),
[all …]
/external/python/httplib2/python2/httplib2/test/
Dtest_no_socket.py9 import httplib2
14 self._oldsocks = httplib2.socks
15 httplib2.socks = None
18 httplib2.socks = self._oldsocks
21 proxy_info = httplib2.ProxyInfo("blah", "localhost", 0)
22 client = httplib2.Http(proxy_info=proxy_info)
24 httplib2.ProxiesUnavailableError, client.request, "http://localhost:-1/"
Dsmoke_test.py4 import httplib2
6 from httplib2.test import miniserver
17 client = httplib2.Http()
/external/python/google-api-python-client/docs/
Dthread_safety.md5 ## The httplib2.Http() objects are not thread-safe
7httplib2](https://github.com/httplib2/httplib2) library, which is not thread-safe. Therefore, if y…
9 The easiest way to provide threads with their own `httplib2.Http()` instances is to either override…
14 new_http = httplib2.Http()
20 http = httplib2.Http()
Dlogging.md46 …detailed logging you can set the debug level of the [httplib2](https://github.com/httplib2/httplib…
49 import httplib2
50 httplib2.debuglevel = 4
/external/python/httplib2/python2/httplib2/test/functional/
Dtest_proxies.py11 import httplib2
12 from httplib2 import socks
13 from httplib2.test import miniserver
75 proxy_info = httplib2.ProxyInfo(
78 client = httplib2.Http(proxy_info=proxy_info)
/external/python/google-api-python-client/tests/
Dtest_json_model.py31 import httplib2
181 resp = httplib2.Response({"status": "401"})
201 resp = httplib2.Response({"status": "200"})
210 resp = httplib2.Response({"status": "200"})
219 resp = httplib2.Response({"status": "200"})
228 resp = httplib2.Response({"status": "204"})
292 resp = httplib2.Response({"status": "200"})
300 resp = httplib2.Response({"status": "200"})
308 resp = httplib2.Response({"status": "200"})

12345