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

Method scheme

mitmproxy/http.py:669–673  ·  view source on GitHub ↗

HTTP request scheme, which should be "http" or "https".

(self)

Source from the content-addressed store, hash-verified

667
668 @property
669 def scheme(self) -> str:
670 """
671 HTTP request scheme, which should be "http" or "https".
672 """
673 return self.data.scheme.decode("utf-8", "surrogateescape")
674
675 @scheme.setter
676 def scheme(self, val: str | bytes) -> None:

Callers

nothing calls this directly

Calls 2

always_bytesFunction · 0.90
decodeMethod · 0.45

Tested by

no test coverage detected