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

Method __init__

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

Source from the content-addressed store, hash-verified

342
343class _ScrapyProxyAgent(Agent):
344 def __init__(
345 self,
346 reactor: ReactorBase,
347 proxyURI: bytes,
348 contextFactory: IPolicyForHTTPS,
349 connectTimeout: float | None = None,
350 bindAddress: tuple[str, int] | None = None,
351 pool: HTTPConnectionPool | None = None,
352 ):
353 super().__init__( # type: ignore[no-untyped-call]
354 reactor=reactor,
355 contextFactory=contextFactory,
356 connectTimeout=connectTimeout,
357 bindAddress=bindAddress,
358 pool=pool,
359 )
360 self._proxyURI: URI = URI.fromBytes(proxyURI)
361
362 def request(
363 self,

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected