TimeoutSettings class
General timeout settings for the client.
Constructors
- TimeoutSettings.new({Duration? timeout, Duration? connectTimeout, Duration? keepAliveTimeout, Duration keepAlivePing = const Duration(seconds: 30)})
-
const
Properties
- connectTimeout → Duration?
-
The timeout for establishing a connection.
See timeout for the total timeout.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- keepAlivePing → Duration
-
Keep alive ping interval.
Only valid if keepAliveTimeout is set and HTTP/2 is used.
final
- keepAliveTimeout → Duration?
-
Keep alive idle timeout. If not set, keep alive is disabled.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout → Duration?
-
The timeout for the request including time to establish a connection.
final
Methods
-
copyWith(
{Duration? timeout, Duration? connectTimeout, Duration? keepAliveTimeout, Duration? keepAlivePing}) → TimeoutSettings -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited