MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / RequestProtocolError

Class RequestProtocolError

mitmproxy/proxy/layers/http/_events.py:131–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129
130@dataclass
131class RequestProtocolError(HttpEvent):
132 message: str
133 code: ErrorCode = ErrorCode.GENERIC_CLIENT_ERROR
134
135 def __init__(self, stream_id: int, message: str, code: ErrorCode):
136 assert isinstance(code, ErrorCode)
137 self.stream_id = stream_id
138 self.message = message
139 self.code = code
140
141
142@dataclass

Callers 3

check_body_sizeMethod · 0.85
passthroughMethod · 0.85
read_headersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…