Method
__init__
(
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 | |
| 68 | class _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 |
Tested by
no test coverage detected