MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / __post_init__

Method __post_init__

mitmproxy/proxy/mode_specs.py:216–220  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

214
215 # noinspection PyDataclass
216 def __post_init__(self) -> None:
217 scheme, self.address = server_spec.parse(self.data, default_scheme="http")
218 if scheme != "http" and scheme != "https":
219 raise ValueError("invalid upstream proxy scheme")
220 self.scheme = scheme
221
222
223class ReverseMode(ProxyMode):

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected