Home
last modified time | relevance | path

Searched refs:httplib2 (Results 1 – 25 of 106) 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")
41 pi = httplib2.proxy_info_from_environment()
49 pi = httplib2.proxy_info_from_environment("https")
56 pi = httplib2.proxy_info_from_environment()
64 pi = httplib2.proxy_info_from_environment()
77 pi = httplib2.proxy_info_from_environment()
86 pi = httplib2.proxy_info_from_environment()
93 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
23 http = httplib2.Http()
33 http = httplib2.Http()
34 old_retries = httplib2.RETRIES
35 httplib2.RETRIES = 1
43 httplib2.RETRIES = old_retries
47 http = httplib2.Http()
49 with tests.assert_raises(httplib2.ServerNotFoundError):
69 http = httplib2.Http()
83 http = httplib2.Http()
[all …]
Dtest_external.py5 import httplib2
15 http = httplib2.Http()
23 http = httplib2.Http()
33 http = httplib2.Http()
44 http = httplib2.Http(timeout=2)
57 except httplib2.ServerNotFoundError:
68 http = httplib2.Http(ca_certs="/nosuchfile")
86 os.path.dirname(os.path.abspath(httplib2.__file__)), "test", "other_cacerts.txt"
89 http = httplib2.Http(ca_certs=other_ca_certs)
97 http = httplib2.Http()
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):
/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/
DCHANGELOG4 https://github.com/httplib2/httplib2/issues/18
5 https://github.com/httplib2/httplib2/pull/111
8 https://github.com/httplib2/httplib2/issues/123
15 https://github.com/httplib2/httplib2/pull/117
18 https://github.com/httplib2/httplib2/pull/115
21 https://github.com/httplib2/httplib2/issues/112
24 https://github.com/httplib2/httplib2/pull/110
27 https://github.com/httplib2/httplib2/pull/101
36 https://github.com/httplib2/httplib2/pull/100
41 https://github.com/httplib2/httplib2/pull/97
[all …]
DMakefile13 DST = dist/httplib2-$(VERSION)
27 -rm -rf dist/httplib2-$(VERSION)
28 -rm dist/httplib2-$(VERSION).tar.gz
29 -rm dist/httplib2-$(VERSION).zip
30 -mkdir dist/httplib2-$(VERSION)
34 cd dist && tar -czv -f httplib2-$(VERSION).tar.gz httplib2-$(VERSION)
35 cd dist && zip httplib2-$(VERSION).zip -r httplib2-$(VERSION)
36 cd dist/httplib2-$(VERSION) && python setup.py sdist --formats=gztar,zip upload
38 …e_upload.py --summary="Version $(shell python setup.py --version)" --project=httplib2 dist/*.tar.gz
39 …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.bp19 srcs: ["python3/httplib2/cacerts.txt"],
20 path: "python3/httplib2",
25 srcs: ["python2/httplib2/*.py"],
26 path: "python2/httplib2",
31 srcs: ["python3/httplib2/*.py"],
32 path: "python3/httplib2",
36 name: "py-httplib2",
39 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/"
Dtest_ssl_context.py10 import httplib2
11 from httplib2.test import miniserver
49 client = httplib2.Http(ca_certs=self.ca_certs_path)
75 http = httplib2.Http(ca_certs=self.ca_certs_path, proxy_info=None)
Dsmoke_test.py4 import httplib2
6 from httplib2.test import miniserver
17 client = httplib2.Http()
/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.py30 import httplib2
151 resp = httplib2.Response({'status': '401'})
171 resp = httplib2.Response({'status': '200'})
180 resp = httplib2.Response({'status': '200'})
189 resp = httplib2.Response({'status': '200'})
198 resp = httplib2.Response({'status': '204'})
254 resp = httplib2.Response({'status': '200'})
262 resp = httplib2.Response({'status': '200'})
270 resp = httplib2.Response({'status': '200'})
/external/python/oauth2client/oauth2client/
Dtransport.py17 import httplib2
67 return httplib2.Http()
148 redirections=httplib2.DEFAULT_MAX_REDIRECTS,
218 redirections=httplib2.DEFAULT_MAX_REDIRECTS,
245 _CACHED_HTTP = httplib2.Http(MemoryCache())

12345