构建访客会话相关请求超时。
(read_timeout: float = 30.0)
| 43 | |
| 44 | |
| 45 | def _build_timeout(read_timeout: float = 30.0) -> httpx.Timeout: |
| 46 | """构建访客会话相关请求超时。""" |
| 47 | return httpx.Timeout( |
| 48 | connect=5.0, |
| 49 | read=read_timeout, |
| 50 | write=10.0, |
| 51 | pool=5.0, |
| 52 | ) |
| 53 | |
| 54 | |
| 55 | def _build_limits() -> httpx.Limits: |
no outgoing calls
no test coverage detected