• Home
  • Raw
  • Download

Lines Matching +full:get +full:- +full:uri

9         headers={"content-encoding": "gzip", "content-length": 42}
11 with tests.server_const_bytes(response) as uri:
12 response, content = http.request(uri, "HEAD")
14 assert int(response["content-length"]) != 0
22 headers={"content-encoding": "gzip"},
25 with tests.server_const_bytes(response) as uri:
26 response, content = http.request(uri, "GET")
28 assert "content-encoding" not in response
29 assert "-content-encoding" in response
30 assert int(response["content-length"]) == len(b"properly compressed")
37 headers={"content-encoding": "gzip"},
40 with tests.server_const_bytes(response) as uri:
41 response, content = http.request(uri, "POST", body=b"")
43 assert "content-encoding" not in response
44 assert "-content-encoding" in response
52 headers={"content-encoding": "gzip"}, body=b"obviously not compressed"
54 with tests.server_const_bytes(response, request_count=2) as uri:
56 http.request(uri, "GET")
58 # Re-run the test with out the exceptions
61 response, content = http.request(uri, "GET")
70 headers={"content-encoding": "deflate"},
73 with tests.server_const_bytes(response) as uri:
74 response, content = http.request(uri, "GET")
76 assert "content-encoding" not in response
77 assert int(response["content-length"]) == len(b"properly compressed")
86 headers={"content-encoding": "deflate"}, body=b"obviously not compressed"
88 with tests.server_const_bytes(response, request_count=2) as uri:
90 http.request(uri, "GET")
92 # Re-run the test with out the exceptions
95 response, content = http.request(uri, "GET")