创建统一配置的 httpx.AsyncClient。 从配置文件读取 DISABLE_SSL_VERIFY(默认 False,即开启 SSL 验证)。 仅在使用企业代理、Burp、mitmproxy 等中间人代理时才需将其设为 True。
(**kwargs)
| 4 | |
| 5 | |
| 6 | def make_async_client(**kwargs) -> httpx.AsyncClient: |
| 7 | """创建统一配置的 httpx.AsyncClient。 |
| 8 | |
| 9 | 从配置文件读取 DISABLE_SSL_VERIFY(默认 False,即开启 SSL 验证)。 |
| 10 | 仅在使用企业代理、Burp、mitmproxy 等中间人代理时才需将其设为 True。 |
| 11 | """ |
| 12 | kwargs.setdefault("verify", not getattr(config, "DISABLE_SSL_VERIFY", False)) |
| 13 | return httpx.AsyncClient(**kwargs) |
no outgoing calls
no test coverage detected