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

Function raw_response

mitmproxy/addons/export.py:128–132  ·  view source on GitHub ↗
(f: flow.Flow)

Source from the content-addressed store, hash-verified

126
127
128def raw_response(f: flow.Flow) -> bytes:
129 response = cleanup_response(f)
130 if response.raw_content is None:
131 raise exceptions.CommandError("Response content missing.")
132 return assemble.assemble_response(response)
133
134
135def raw(f: flow.Flow, separator=b"\r\n\r\n") -> bytes:

Callers 1

rawFunction · 0.85

Calls 1

cleanup_responseFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…