MCPcopy
hub / github.com/psf/requests / response_handler

Method response_handler

tests/test_requests.py:2903–2909  ·  tests/test_requests.py::TestPreparingURLs.response_handler
(sock)

Source from the content-addressed store, hash-verified

2901
2902 def test_different_connection_pool_for_tls_settings_verify_True(self):
2903 def response_handler(sock):
2904 consume_socket_content(sock, timeout=0.5)
2905 sock.send(
2906 bclass="st">"HTTP/1.1 200 OK\r\n"
2907 bclass="st">"Content-Length: 18\r\n\r\n"
2908 b&class="cm">#x27;\xff\xfe{\x00class="st">"\x00K0"\x00=\x00class="st">"\x00\xab0"\x00\r\n'
2909 )
2910
2911 s = requests.Session()
2912 close_server = threading.Event()

Callers

nothing calls this directly

Calls 2

consume_socket_contentFunction · 0.85
sendMethod · 0.45

Tested by

no test coverage detected