• Home
  • Raw
  • Download

Lines Matching refs:uri

99     with tests.server_reflect() as uri:
100 response, content = http.request(uri + query, "GET")
103 assert reflected.uri == "/?a=%D0%82"
109 with tests.server_reflect() as uri:
110 response, content = http.request(uri)
120 with tests.server_reflect(request_count=len(methods)) as uri:
122 response, content = http.request(uri, method, body=b" ")
133 with tests.server_const_bytes(respond_with) as uri:
134 response, content = http.request(uri, "HEAD")
142 with tests.server_const_http() as uri:
143 response, content = http.request(uri, "GET")
151 with tests.server_reflect() as uri:
152 response, content = http.request(uri, "GET")
161 with tests.server_reflect() as uri:
162 response, content = http.request(uri, "GET", headers={"User-Agent": "fred/1.0"})
178 with tests.server_route(routes, request_count=2) as uri:
179 response, content = http.request(uri, "GET")
186 with tests.server_route(routes, request_count=2) as uri:
187 response, content = http.request(uri, "GET")
203 with tests.server_const_bytes(response) as uri:
204 response, content = http.request(uri, "GET")
214 ) as uri:
215 response, content = http.request(uri, "GET")
234 with tests.server_route(routes, request_count=3) as uri:
235 destination = urllib.parse.urljoin(uri, "/final")
236 response1, content1 = http.request(uri, "GET")
237 response2, content2 = http.request(uri, "GET")
269 with tests.server_route(routes, request_count=2) as uri:
270 destination = urllib.parse.urljoin(uri, "/final")
271 response, content = http.request(uri, "HEAD")
293 with tests.server_const_bytes(response) as uri:
294 response, _ = http.request(uri, "GET")
297 response, _ = http.request(uri, "GET")
316 with tests.server_route(routes, request_count=7) as uri:
317 second_url = urllib.parse.urljoin(uri, "/second")
318 final_url = urllib.parse.urljoin(uri, "/final")
321 response3, content3 = http.request(uri, "GET")
359 with tests.server_route(routes, request_count=4) as uri:
361 http.request(uri, "GET", redirections=1)
370 response, content = http.request(uri, "GET", redirections=1)
384 with tests.server_const_http(status="302 Found", request_count=2) as uri:
386 http.request(uri, "GET")
395 response, content = http.request(uri, "GET")
418 with tests.server_route(routes, request_count=2) as uri:
419 response, content = http.request(uri, "POST", " ")
422 assert reflected.uri == "/final"
428 with tests.server_route(routes, request_count=1) as uri:
429 response, content = http.request(uri, "POST", " ")
435 with tests.server_route(routes, request_count=len(cases) * 2) as uri:
437 response, content = http.request(uri, method, body=b"q q")
459 with tests.server_request(handler, request_count=2) as uri:
460 response, _ = http.request(uri, "GET", headers={"accept-encoding": "identity"})
463 http.request(uri, "GET", headers={"accept-encoding": "identity"})
465 uri,
474 cache_path, httplib2.safename(httplib2.urlnorm(uri)[-1])
481 uri, "HEAD", headers={"accept-encoding": "identity"}
487 uri, "GET", headers={"accept-encoding": "identity", "range": "bytes=0-0"}
497 with tests.server_reflect(request_count=3, **response_kwargs) as uri:
499 uri, "GET", headers={"accept-encoding": "identity"}
505 uri,
514 uri,
527 with tests.server_reflect(request_count=3, **response_kwargs) as uri:
528 response, _ = http.request(uri, "GET", headers={"accept-encoding": "identity"})
533 uri,
543 uri,
590 with tests.server_yield(handler, request_count=2) as uri:
591 response, content = http.request(uri, "GET")
594 response, content = http.request(uri, "GET")
611 with tests.server_list_http([r307, r200, r307]) as uri:
612 response, content = http.request(uri, "GET")
619 response, content = http.request(uri, "GET")
630 with tests.server_const_http(status=410) as uri:
631 response, content = http.request(uri, "GET")
643 with tests.server_const_bytes(response) as uri:
644 response, content = http.request(uri, "GET")