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

Method initialize

tornado/httpclient.py:216–221  ·  view source on GitHub ↗
(self, defaults: Optional[Dict[str, Any]] = None)

Source from the content-addressed store, hash-verified

214 return instance
215
216 def initialize(self, defaults: Optional[Dict[str, Any]] = None) -> None:
217 self.io_loop = IOLoop.current()
218 self.defaults = dict(HTTPRequest._DEFAULTS)
219 if defaults is not None:
220 self.defaults.update(defaults)
221 self._closed = False
222
223 def close(self) -> None:
224 """Destroys this HTTP client, freeing any file descriptors used.

Callers

nothing calls this directly

Calls 1

currentMethod · 0.80

Tested by

no test coverage detected