• Home
  • Raw
  • Download

Lines Matching refs:uri

14     with tests.server_const_http(add_etag=True) as uri:
15 http.request(uri, "GET")
17 uri, "GET", headers={"cache-control": "only-if-cached"}
26 with tests.server_const_http(request_count=0) as uri:
28 uri, "GET", headers={"cache-control": "only-if-cached"}
40 with tests.server_const_http(request_count=0) as uri:
42 uri, "GET", headers={"cache-control": "only-if-cached"}
75 with tests.server_const_bytes(response, request_count=3) as uri:
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"})
92 response, content = http.request(uri, "GET")
103 with tests.server_const_bytes(response, request_count=3) as uri:
105 uri,
117 uri,
126 response, content = http.request(uri, "GET", headers={"Accept": "text/plain"})
131 response, content = http.request(uri, "GET", headers={"Accept-Language": "da"})
142 with tests.server_const_bytes(response, request_count=1) as uri:
144 response, content = http.request(uri, "GET", headers={"Accept": "text/plain"})
149 response, content = http.request(uri, "GET", headers={"Accept": "text/plain"})
161 ) as uri:
162 response, _ = http.request(uri, "GET", headers={"accept-encoding": "identity"})
166 response, _ = http.request(uri, "GET", headers={"accept-encoding": "identity"})
170 uri,
186 ) as uri:
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"}
207 ) as uri:
208 response, _ = http.request(uri, "GET", headers={"Cache-Control": "no-store"})
211 response, _ = http.request(uri, "GET", headers={"Cache-Control": "no-store"})
224 ) as uri:
225 response, _ = http.request(uri, "GET")
228 response, _ = http.request(uri, "GET")
242 ) as uri:
243 response, _ = http.request(uri, "GET")
244 response, _ = http.request(uri, "GET")
247 uri, "GET", headers={"Cache-Control": "no-store, no-cache"}
252 uri, "GET", headers={"Cache-Control": "no-store, no-cache"}
270 with tests.server_request(handler, request_count=3) as uri:
271 response, _ = http.request(uri, "GET")
272 response, _ = http.request(uri, "GET")
274 response, _ = http.request(uri, "DELETE")
277 response, _ = http.request(uri, "GET")
300 with tests.server_request(handler_conditional_update, request_count=3) as uri:
301 response, _ = http.request(uri, "GET")
304 response, _ = http.request(uri, "GET")
307 response, _ = http.request(uri, method, body=b"foo")
309 response, _ = http.request(uri, method, body=b"foo")
316 with tests.server_request(handler_conditional_update, request_count=2) as uri:
317 response, _ = http.request(uri, "GET")
320 response, _ = http.request(uri, "GET")
324 response, _ = http.request(uri, "DELETE")
331 with tests.server_request(handler_conditional_update, request_count=2) as uri:
332 response, content = http.request(uri, "GET")
335 response, content = http.request(uri, "GET")
339 uri, "PUT", body=b"foo", headers={"if-match": "fred"}