MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_first_line_format

Method test_first_line_format

test/mitmproxy/test_http.py:151–154  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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")

Callers

nothing calls this directly

Calls 1

treqFunction · 0.90

Tested by

no test coverage detected