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

Class HttpRequestHook

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

The full HTTP request has been read. Note: If request streaming is active, this event fires after the entire body has been streamed. HTTP trailers, if present, have not been transmitted to the server yet and can still be modified. Enabling streaming may cause unexpected event seque

Source from the content-addressed store, hash-verified

16
17@dataclass
18class HttpRequestHook(commands.StartHook):
19 """
20 The full HTTP request has been read.
21
22 Note: If request streaming is active, this event fires after the entire body has been streamed.
23 HTTP trailers, if present, have not been transmitted to the server yet and can still be modified.
24 Enabling streaming may cause unexpected event sequences: For example, `response` may now occur
25 before `request` because the server replied with "413 Payload Too Large" during upload.
26 """
27
28 name = "request"
29 flow: http.HTTPFlow
30
31
32@dataclass

Callers 5

test_lifecycleFunction · 0.90
test_simpleMethod · 0.90
test_exceptionMethod · 0.90

Calls

no outgoing calls

Tested by 3

test_lifecycleFunction · 0.72
test_simpleMethod · 0.72
test_exceptionMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…