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

Method __repr__

mitmproxy/http.py:1250–1263  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1248 super().set_state(state)
1249
1250 def __repr__(self):
1251 s = "<HTTPFlow"
1252 for a in (
1253 "request",
1254 "response",
1255 "websocket",
1256 "error",
1257 "client_conn",
1258 "server_conn",
1259 ):
1260 if getattr(self, a, False):
1261 s += f"\r\n {a} = {{flow.{a}}}"
1262 s += ">"
1263 return s.format(flow=self)
1264
1265 @property
1266 def timestamp_start(self) -> float:

Callers

nothing calls this directly

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected