MCPcopy
hub / github.com/scrapy/scrapy / __init__

Method __init__

scrapy/core/downloader/handlers/http11.py:293–305  ·  view source on GitHub ↗
(
        self,
        *,
        reactor: ReactorBase,
        proxyConf: tuple[str, int, bytes | None],
        contextFactory: IPolicyForHTTPS,
        connectTimeout: float | None = None,
        bindAddress: tuple[str, int] | None = None,
        pool: HTTPConnectionPool | None = None,
    )

Source from the content-addressed store, hash-verified

291 """
292
293 def __init__(
294 self,
295 *,
296 reactor: ReactorBase,
297 proxyConf: tuple[str, int, bytes | None],
298 contextFactory: IPolicyForHTTPS,
299 connectTimeout: float | None = None,
300 bindAddress: tuple[str, int] | None = None,
301 pool: HTTPConnectionPool | None = None,
302 ):
303 super().__init__(reactor, contextFactory, connectTimeout, bindAddress, pool) # type: ignore[no-untyped-call]
304 self._proxyConf: tuple[str, int, bytes | None] = proxyConf
305 self._contextFactory: IPolicyForHTTPS = contextFactory
306
307 def _getEndpoint(self, uri: URI) -> _TunnelingTCP4ClientEndpoint:
308 return _TunnelingTCP4ClientEndpoint(

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected