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

Function make_body_reader

mitmproxy/proxy/layers/http/_http1.py:474–480  ·  view source on GitHub ↗
(expected_size: int | None)

Source from the content-addressed store, hash-verified

472
473
474def make_body_reader(expected_size: int | None) -> TBodyReader:
475 if expected_size is None:
476 return ChunkedReader()
477 elif expected_size == -1:
478 return Http10Reader()
479 else:
480 return ContentLengthReader(expected_size)
481
482
483def make_error_response(

Callers 2

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