connectionTimeout property - HttpClient class - dart:io library (original) (raw)
Duration?connectionTimeout
getter/setter pair
Gets and sets the connection timeout.
When connecting to a new host exceeds this timeout, a SocketExceptionis thrown. The timeout applies only to connections initiated after the timeout is set.
When this is null
, the OS default timeout is used. The default isnull
.
Implementation
Duration? connectionTimeout;