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

Method __init__

scrapy/core/downloader/handlers/http2.py:69–81  ·  view source on GitHub ↗
(
        self,
        context_factory: IPolicyForHTTPS,
        pool: H2ConnectionPool,
        connect_timeout: int = 10,
        bind_address: str | tuple[str, int] | None = None,
        crawler: Crawler | None = None,
    )

Source from the content-addressed store, hash-verified

67
68class _ScrapyH2Agent:
69 def __init__(
70 self,
71 context_factory: IPolicyForHTTPS,
72 pool: H2ConnectionPool,
73 connect_timeout: int = 10,
74 bind_address: str | tuple[str, int] | None = None,
75 crawler: Crawler | None = None,
76 ) -> None:
77 self._context_factory = context_factory
78 self._connect_timeout = connect_timeout
79 self._bind_address = bind_address
80 self._pool = pool
81 self._crawler = crawler
82
83 def _get_agent(self, request: Request, timeout: float | None) -> H2Agent:
84 from twisted.internet import reactor

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected