MCPcopy
hub / github.com/nonebot/nonebot2 / Timeout

Class Timeout

nonebot/internal/driver/model.py:16–22  ·  view source on GitHub ↗

Request 超时配置。

Source from the content-addressed store, hash-verified

14
15@dataclass
16class Timeout:
17 """Request 超时配置。"""
18
19 total: float | None | UnsetType = UNSET
20 connect: float | None | UnsetType = UNSET
21 read: float | None | UnsetType = UNSET
22 close: float | None | UnsetType = UNSET
23
24
25DEFAULT_TIMEOUT = Timeout(total=None, connect=5.0, read=30.0, close=10.0)

Callers 6

model.pyFile · 0.85
test_http_clientFunction · 0.85
test_http_client_sessionFunction · 0.85
test_http_client_timeoutFunction · 0.85

Calls

no outgoing calls

Tested by 5

test_http_clientFunction · 0.68
test_http_client_sessionFunction · 0.68
test_http_client_timeoutFunction · 0.68