Method
_init_proxy_transport
(
self,
proxy: Proxy,
verify: ssl.SSLContext | str | bool = True,
cert: CertTypes | None = None,
trust_env: bool = True,
http1: bool = True,
http2: bool = False,
limits: Limits = DEFAULT_LIMITS,
)
Source from the content-addressed store, hash-verified
| 738 | ) |
| 739 | |
| 740 | def _init_proxy_transport( |
| 741 | self, |
| 742 | proxy: Proxy, |
| 743 | verify: ssl.SSLContext | str | bool = True, |
| 744 | cert: CertTypes | None = None, |
| 745 | trust_env: bool = True, |
| 746 | http1: bool = True, |
| 747 | http2: bool = False, |
| 748 | limits: Limits = DEFAULT_LIMITS, |
| 749 | ) -> BaseTransport: |
| 750 | return HTTPTransport( |
| 751 | verify=verify, |
| 752 | cert=cert, |
| 753 | trust_env=trust_env, |
| 754 | http1=http1, |
| 755 | http2=http2, |
| 756 | limits=limits, |
| 757 | proxy=proxy, |
| 758 | ) |
| 759 | |
| 760 | def _transport_for_url(self, url: URL) -> BaseTransport: |
| 761 | """ |
Tested by
no test coverage detected