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

Class ReceiveHttp

mitmproxy/proxy/layers/http/_base.py:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32
33class ReceiveHttp(HttpCommand):
34 event: HttpEvent
35
36 def __init__(self, event: HttpEvent):
37 self.event = event
38
39 def __repr__(self) -> str:
40 return f"Receive({self.event})"
41
42
43def format_error(status_code: int, message: str) -> bytes:

Callers 15

test_simpleMethod · 0.90
test_connectMethod · 0.90
test_upgradeMethod · 0.90
test_upgrade_deniedMethod · 0.90
test_simpleMethod · 0.90
test_connectMethod · 0.90
test_upgradeMethod · 0.90
test_upgrade_deniedMethod · 0.90
read_bodyMethod · 0.90
waitMethod · 0.90
passthroughMethod · 0.90
read_headersMethod · 0.90

Calls

no outgoing calls

Tested by 8

test_simpleMethod · 0.72
test_connectMethod · 0.72
test_upgradeMethod · 0.72
test_upgrade_deniedMethod · 0.72
test_simpleMethod · 0.72
test_connectMethod · 0.72
test_upgradeMethod · 0.72
test_upgrade_deniedMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…