MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / path

Method path

mitmproxy/http.py:778–786  ·  view source on GitHub ↗

HTTP request path, e.g. "/index.html" or "/index.html?a=b". Usually starts with a slash, except for OPTIONS requests, which may just be "*". This attribute includes both path and query parts of the target URI (see Sections 3.3 and 3.4 of [RFC3986](https://datatracke

(self)

Source from the content-addressed store, hash-verified

776
777 @property
778 def path(self) -> str:
779 """
780 HTTP request path, e.g. "/index.html" or "/index.html?a=b".
781 Usually starts with a slash, except for OPTIONS requests, which may just be "*".
782
783 This attribute includes both path and query parts of the target URI
784 (see Sections 3.3 and 3.4 of [RFC3986](https://datatracker.ietf.org/doc/html/rfc3986)).
785 """
786 return self.data.path.decode("utf-8", "surrogateescape")
787
788 @path.setter
789 def path(self, val: str | bytes) -> None:

Callers 3

test_simpleMethod · 0.45
test_contentencodeMethod · 0.45
test_httpMethod · 0.45

Calls 2

always_bytesFunction · 0.90
decodeMethod · 0.45

Tested by 3

test_simpleMethod · 0.36
test_contentencodeMethod · 0.36
test_httpMethod · 0.36