Lines Matching full:content
9 headers={"content-encoding": "gzip", "content-length": 42}
12 response, content = http.request(uri, "HEAD")
14 assert int(response["content-length"]) != 0
15 assert content == b""
22 headers={"content-encoding": "gzip"},
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")
31 assert content == b"properly compressed"
37 headers={"content-encoding": "gzip"},
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"
61 response, content = http.request(uri, "GET")
63 assert response.reason.startswith("Content purported")
70 headers={"content-encoding": "deflate"},
74 response, content = http.request(uri, "GET")
76 assert "content-encoding" not in response
77 assert int(response["content-length"]) == len(b"properly compressed")
78 assert content == b"properly compressed"
86 headers={"content-encoding": "deflate"}, body=b"obviously not compressed"
95 response, content = http.request(uri, "GET")
97 assert response.reason.startswith("Content purported")