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

Function should_make_pipe

mitmproxy/proxy/layers/http/_http1.py:465–471  ·  view source on GitHub ↗
(request: http.Request, response: http.Response)

Source from the content-addressed store, hash-verified

463
464
465def should_make_pipe(request: http.Request, response: http.Response) -> bool:
466 if response.status_code == 101:
467 return True
468 elif response.status_code == 200 and request.method.upper() == "CONNECT":
469 return True
470 else:
471 return False
472
473
474def make_body_reader(expected_size: int | None) -> TBodyReader:

Callers 1

mark_doneMethod · 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…