MCPcopy
hub / github.com/tornadoweb/tornado / handle_response

Method handle_response

tornado/httpclient.py:299–304  ·  view source on GitHub ↗
(response: "HTTPResponse")

Source from the content-addressed store, hash-verified

297 future = Future() # type: Future[HTTPResponse]
298
299 def handle_response(response: "HTTPResponse") -> None:
300 if response.error:
301 if raise_error or not response._error_is_response_code:
302 future_set_exception_unless_cancelled(future, response.error)
303 return
304 future_set_result_unless_cancelled(future, response)
305
306 self.fetch_impl(cast(HTTPRequest, request_proxy), handle_response)
307 return future

Callers

nothing calls this directly

Tested by

no test coverage detected