MCPcopy
hub / github.com/mitmproxy/mitmproxy / _echo_headers

Method _echo_headers

mitmproxy/addons/dumper.py:100–105  ·  view source on GitHub ↗
(self, headers: http.Headers)

Source from the content-addressed store, hash-verified

98 print(text, file=self.outfp)
99
100 def _echo_headers(self, headers: http.Headers):
101 for k, v in headers.fields:
102 ks = strutils.bytes_to_escaped_str(k)
103 ks = self.style(ks, fg="blue")
104 vs = strutils.bytes_to_escaped_str(v)
105 self.echo(f"{ks}: {vs}", ident=4)
106
107 def _echo_trailers(self, trailers: http.Headers | None):
108 if not trailers:

Callers 2

_echo_trailersMethod · 0.95
echo_flowMethod · 0.95

Calls 2

styleMethod · 0.95
echoMethod · 0.95

Tested by

no test coverage detected