MCPcopy
hub / github.com/mitmproxy/mitmproxy / HttpResponseHook

Class HttpResponseHook

mitmproxy/proxy/layers/http/_hooks.py:43–52  ·  view source on GitHub ↗

The full HTTP response has been read. Note: If response streaming is active, this event fires after the entire body has been streamed. HTTP trailers, if present, have not been transmitted to the client yet and can still be modified.

Source from the content-addressed store, hash-verified

41
42@dataclass
43class HttpResponseHook(commands.StartHook):
44 """
45 The full HTTP response has been read.
46
47 Note: If response streaming is active, this event fires after the entire body has been streamed.
48 HTTP trailers, if present, have not been transmitted to the client yet and can still be modified.
49 """
50
51 name = "response"
52 flow: http.HTTPFlow
53
54
55@dataclass

Callers 2

test_simpleFunction · 0.90
send_responseMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_simpleFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…