MCPcopy
hub / github.com/mitmproxy/mitmproxy / echo

Method echo

mitmproxy/addons/dumper.py:94–98  ·  view source on GitHub ↗
(self, text: str, ident=None, **style)

Source from the content-addressed store, hash-verified

92 return text
93
94 def echo(self, text: str, ident=None, **style):
95 if ident:
96 text = indent(ident, text)
97 text = self.style(text, **style)
98 print(text, file=self.outfp)
99
100 def _echo_headers(self, headers: http.Headers):
101 for k, v in headers.fields:

Callers 13

_echo_headersMethod · 0.95
_echo_trailersMethod · 0.95
_echo_messageMethod · 0.95
_echo_request_lineMethod · 0.95
_echo_response_lineMethod · 0.95
echo_flowMethod · 0.95
websocket_messageMethod · 0.95
websocket_endMethod · 0.95
_proto_errorMethod · 0.95
_proto_messageMethod · 0.95
_echo_dns_queryMethod · 0.95
dns_responseMethod · 0.95

Calls 2

styleMethod · 0.95
indentFunction · 0.85

Tested by

no test coverage detected