(self)
| 149 | Request.make("GET", "https://example.com/", headers=42) |
| 150 | |
| 151 | def test_first_line_format(self): |
| 152 | assert treq(method=b"CONNECT").first_line_format == "authority" |
| 153 | assert treq(authority=b"example.com").first_line_format == "absolute" |
| 154 | assert treq(authority=b"").first_line_format == "relative" |
| 155 | |
| 156 | def test_method(self): |
| 157 | _test_decoded_attr(treq(), "method") |