MCPcopy
hub / github.com/httpie/cli / max_headers

Function max_headers

httpie/client.py:145–153  ·  view source on GitHub ↗
(limit)

Source from the content-addressed store, hash-verified

143# noinspection PyProtectedMember
144@contextmanager
145def max_headers(limit):
146 # <https://github.com/httpie/cli/issues/802>
147 # noinspection PyUnresolvedReferences
148 orig = http.client._MAXHEADERS
149 http.client._MAXHEADERS = limit or float('Inf')
150 try:
151 yield
152 finally:
153 http.client._MAXHEADERS = orig
154
155
156def build_requests_session(

Callers 1

collect_messagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected