IoTransportOptions class

Native connection, idle, redirect, shutdown, trust and proxy configuration.

Constructors

IoTransportOptions({Duration connectionTimeout = const Duration(seconds: 15), Duration idleTimeout = const Duration(seconds: 15), Duration? responseIdleTimeout = const Duration(seconds: 30), Duration shutdownTimeout = const Duration(seconds: 30), int maxConnectionsPerHost = 6, int maxRedirects = 5, bool followRedirects = true, bool autoUncompress = true, SecurityContext? securityContext, String findProxy(Uri)?})
const

Properties

autoUncompress → bool
final
connectionTimeout → Duration
final
findProxy → String Function(Uri)?
final
followRedirects → bool
Disable when authentication/cookie middleware must inspect every redirect hop.
final
hashCode → int
The hash code for this object.
no setterinherited
idleTimeout → Duration
final
maxConnectionsPerHost → int
final
maxRedirects → int
final
responseIdleTimeout → Duration?
Maximum gap while consuming response chunks; null disables the idle budget.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
securityContext → SecurityContext?
Optional trust/client-certificate context; certificate validation stays enabled.
final
shutdownTimeout → Duration
final

Methods

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