Lines Matching refs:headers
17 uri, "GET", headers={"cache-control": "only-if-cached"}
28 uri, "GET", headers={"cache-control": "only-if-cached"}
42 uri, "GET", headers={"cache-control": "only-if-cached"}
73 headers={"vary": "Accept", "cache-control": "max-age=300"}, add_date=True
76 response, content = http.request(uri, "GET", headers={"accept": "text/plain"})
82 response, content = http.request(uri, "GET", headers={"Accept": "text/plain"})
87 response, content = http.request(uri, "GET", headers={"Accept": "text/html"})
100 headers={"vary": "Accept, Accept-Language", "cache-control": "max-age=300"},
107 headers={
119 headers={
126 response, content = http.request(uri, "GET", headers={"Accept": "text/plain"})
131 response, content = http.request(uri, "GET", headers={"Accept-Language": "da"})
139 headers={"vary": "X-No-Such-Header", "cache-control": "max-age=300"},
144 response, content = http.request(uri, "GET", headers={"Accept": "text/plain"})
149 response, content = http.request(uri, "GET", headers={"Accept": "text/plain"})
159 headers={"cache-control": "max-age=300"},
162 response, _ = http.request(uri, "GET", headers={"accept-encoding": "identity"})
166 response, _ = http.request(uri, "GET", headers={"accept-encoding": "identity"})
172 headers={"accept-encoding": "identity", "Cache-Control": "no-cache"},
184 headers={"cache-control": "max-age=300"},
187 response, _ = http.request(uri, "GET", headers={"accept-encoding": "identity"})
189 response, _ = http.request(uri, "GET", headers={"accept-encoding": "identity"})
193 uri, "GET", headers={"accept-encoding": "identity", "Pragma": "no-cache"}
205 headers={"cache-control": "max-age=300"},
208 response, _ = http.request(uri, "GET", headers={"Cache-Control": "no-store"})
211 response, _ = http.request(uri, "GET", headers={"Cache-Control": "no-store"})
222 headers={"cache-control": "max-age=300, no-store"},
240 headers={"cache-control": "max-age=300"},
247 uri, "GET", headers={"Cache-Control": "no-store, no-cache"}
252 uri, "GET", headers={"Cache-Control": "no-store, no-cache"}
267 add_date=True, add_etag=True, headers={"cache-control": "max-age=300"}
284 if request.headers.get("if-none-match", "") == "12345":
287 add_date=True, headers={"etag": "12345", "cache-control": "max-age=300"}
290 if request.headers.get("if-match", "") == "12345":
339 uri, "PUT", body=b"foo", headers={"if-match": "fred"}