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

Class ResponseProtocolError

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

Source from the content-addressed store, hash-verified

141
142@dataclass
143class ResponseProtocolError(HttpEvent):
144 message: str
145 code: ErrorCode = ErrorCode.GENERIC_SERVER_ERROR
146
147 def __init__(self, stream_id: int, message: str, code: ErrorCode):
148 assert isinstance(code, ErrorCode)
149 self.stream_id = stream_id
150 self.message = message
151 self.code = code
152
153
154__all__ = [

Callers 7

check_body_sizeMethod · 0.85
check_invalidMethod · 0.85
check_killedMethod · 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…