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