构建访客会话相关 HTTP 客户端。
(read_timeout: float = 30.0)
| 61 | |
| 62 | |
| 63 | def _build_async_client(read_timeout: float = 30.0) -> httpx.AsyncClient: |
| 64 | """构建访客会话相关 HTTP 客户端。""" |
| 65 | return httpx.AsyncClient( |
| 66 | timeout=_build_timeout(read_timeout), |
| 67 | follow_redirects=True, |
| 68 | limits=_build_limits(), |
| 69 | proxy=_get_proxy_config(), |
| 70 | ) |
| 71 | |
| 72 | |
| 73 | def _build_dynamic_headers(chat_id: str = "") -> Dict[str, str]: |
no test coverage detected