Method
_init_transport
(
self,
verify: ssl.SSLContext | str | bool = True,
cert: CertTypes | None = None,
trust_env: bool = True,
http1: bool = True,
http2: bool = False,
limits: Limits = DEFAULT_LIMITS,
transport: BaseTransport | None = None,
)
Source from the content-addressed store, hash-verified
| 716 | self._mounts = dict(sorted(self._mounts.items())) |
| 717 | |
| 718 | def _init_transport( |
| 719 | self, |
| 720 | verify: ssl.SSLContext | str | bool = True, |
| 721 | cert: CertTypes | None = None, |
| 722 | trust_env: bool = True, |
| 723 | http1: bool = True, |
| 724 | http2: bool = False, |
| 725 | limits: Limits = DEFAULT_LIMITS, |
| 726 | transport: BaseTransport | None = None, |
| 727 | ) -> BaseTransport: |
| 728 | if transport is not None: |
| 729 | return transport |
| 730 | |
| 731 | return HTTPTransport( |
| 732 | verify=verify, |
| 733 | cert=cert, |
| 734 | trust_env=trust_env, |
| 735 | http1=http1, |
| 736 | http2=http2, |
| 737 | limits=limits, |
| 738 | ) |
| 739 | |
| 740 | def _init_proxy_transport( |
| 741 | self, |
Tested by
no test coverage detected