disableReceiveTimeout property

bool disableReceiveTimeout
final

true 时,Dio 不设置接收超时(receiveTimeout: null),等待响应体不设上限。

适用于本地调试、慢代理或生成类接口;连接/发送仍使用 connectTimeout / sendTimeout。 默认 false(接收超时 30s,与历史行为一致)。

Implementation

final bool disableReceiveTimeout;