MCPcopy
hub / github.com/scrapy/scrapy / buildProtocol

Method buildProtocol

scrapy/core/http2/protocol.py:474–480  ·  view source on GitHub ↗
(self, addr: IAddress)

Source from the content-addressed store, hash-verified

472 self.tls_verbose_logging = tls_verbose_logging
473
474 def buildProtocol(self, addr: IAddress) -> H2ClientProtocol:
475 return H2ClientProtocol(
476 self.uri,
477 self.settings,
478 self.conn_lost_deferred,
479 tls_verbose_logging=self.tls_verbose_logging,
480 )
481
482 def acceptableProtocols(self) -> list[bytes]:
483 return [PROTOCOL_NAME]

Callers 2

_get_dummy_protocolMethod · 0.80

Calls 1

H2ClientProtocolClass · 0.85

Tested by 2

_get_dummy_protocolMethod · 0.64