Home
last modified time | relevance | path

Searched refs:response_headers (Results 1 – 10 of 10) sorted by relevance

/external/python/httplib2/python2/
Dhttplib2test.py1490 response_headers = {"cache-control": "max-age=7200"}
1494 httplib2._entry_disposition(response_headers, request_headers),
1499 response_headers = {"cache-control": "max-age=fred, min-fresh=barney"}
1502 "STALE", httplib2._entry_disposition(response_headers, request_headers)
1509 response_headers = {
1516 "STALE", httplib2._entry_disposition(response_headers, request_headers)
1534 response_headers = {
1540 "FRESH", httplib2._entry_disposition(response_headers, request_headers)
1544 "STALE", httplib2._entry_disposition(response_headers, request_headers)
1548 response_headers = {
[all …]
/external/python/httplib2/python3/
Dhttplib2test.py1445 response_headers = {"cache-control": "max-age=7200"}
1449 httplib2._entry_disposition(response_headers, request_headers),
1454 response_headers = {"cache-control": "max-age=fred, min-fresh=barney"}
1457 "STALE", httplib2._entry_disposition(response_headers, request_headers)
1464 response_headers = {
1471 "STALE", httplib2._entry_disposition(response_headers, request_headers)
1489 response_headers = {
1495 "FRESH", httplib2._entry_disposition(response_headers, request_headers)
1499 "STALE", httplib2._entry_disposition(response_headers, request_headers)
1503 response_headers = {
[all …]
/external/tensorflow/tensorflow/core/platform/cloud/
Dhttp_request_fake.h45 const std::map<string, string>& response_headers) in FakeHttpRequest() argument
47 response_headers, 200) {} in FakeHttpRequest()
69 const std::map<string, string>& response_headers, in FakeHttpRequest() argument
75 response_headers_(response_headers), in FakeHttpRequest()
Dcurl_http_request_test.cc49 const std::vector<string>& response_headers) in FakeLibCurl() argument
52 response_headers_(response_headers) {} in FakeLibCurl()
/external/python/httplib2/tests/
Dtest_cache.py431 response_headers = {
435 assert httplib2._entry_disposition(response_headers, {}) == "FRESH"
438 assert httplib2._entry_disposition(response_headers, {}) == "STALE"
443 response_headers = {
447 assert httplib2._entry_disposition(response_headers, {}) == "FRESH"
449 assert httplib2._entry_disposition(response_headers, {}) == "STALE"
/external/libbrillo/brillo/http/
Dhttp_connection_curl_unittest.cc65 HeaderList response_headers; member in brillo::http::curl::__anonbdbf0c740111::CurlPerformer
87 for (const auto& pair : response_headers) { in DoPerform()
292 HeaderList response_headers{ in TEST_F() local
299 performer_.response_headers = response_headers; in TEST_F()
/external/python/oauth2client/tests/
Dhttp_mock.py34 self.response_headers = headers
51 return httplib2.Response(self.response_headers), self.data
/external/python/httplib2/python3/httplib2/
D__init__.py356 def _entry_disposition(response_headers, request_headers): argument
386 cc_response = _parse_cache_control(response_headers)
401 elif "date" in response_headers:
402 date = calendar.timegm(email.utils.parsedate_tz(response_headers["date"]))
410 elif "expires" in response_headers:
411 expires = email.utils.parsedate_tz(response_headers["expires"])
477 def _updateCache(request_headers, response_headers, content, cache, cachekey): argument
480 cc_response = _parse_cache_control(response_headers)
485 for key, value in response_headers.items():
491 vary = response_headers.get("vary", None)
[all …]
/external/python/httplib2/python2/httplib2/
D__init__.py436 def _entry_disposition(response_headers, request_headers): argument
466 cc_response = _parse_cache_control(response_headers)
481 elif "date" in response_headers:
482 date = calendar.timegm(email.Utils.parsedate_tz(response_headers["date"]))
490 elif "expires" in response_headers:
491 expires = email.Utils.parsedate_tz(response_headers["expires"])
538 def _updateCache(request_headers, response_headers, content, cache, cachekey): argument
541 cc_response = _parse_cache_control(response_headers)
546 for key, value in response_headers.iteritems():
552 vary = response_headers.get("vary", None)
[all …]
/external/python/google-api-python-client/googleapiclient/
Dhttp.py1615 self.response_headers = headers
1633 return httplib2.Response(self.response_headers), self.data