获取会话对象(单例)
(self)
| 72 | |
| 73 | @property |
| 74 | def session(self) -> Session: |
| 75 | """获取会话对象(单例)""" |
| 76 | if self._session is None: |
| 77 | self._session = Session( |
| 78 | proxies=self.proxies, |
| 79 | impersonate=self.config.impersonate, |
| 80 | verify=self.config.verify_ssl, |
| 81 | timeout=self.config.timeout |
| 82 | ) |
| 83 | return self._session |
| 84 | |
| 85 | def request( |
| 86 | self, |
nothing calls this directly
no outgoing calls
no test coverage detected