ChannelOptions class

Options controlling how connections are made on a ClientChannel.

Constructors

ChannelOptions({ChannelCredentials credentials = const ChannelCredentials.secure(), Duration? idleTimeout = defaultIdleTimeout, String userAgent = defaultUserAgent, BackoffStrategy backoffStrategy = defaultBackoffStrategy, Duration? connectTimeout, Duration connectionTimeout = defaultConnectionTimeOut, CodecRegistry? codecRegistry, ClientKeepAliveOptions keepAlive = const ClientKeepAliveOptions(), Proxy? proxy})
const

Properties

backoffStrategy BackoffStrategy
final
codecRegistry CodecRegistry?
final
connectionTimeout Duration
The maximum time a single connection will be used for new requests.
final
connectTimeout Duration?
The maximum allowed time to wait for a connection to be established. If connectTimeout is longer than the system level timeout duration, a timeout may occur sooner than specified in connectTimeout.
final
credentials ChannelCredentials
final
hashCode int
The hash code for this object.
no setterinherited
idleTimeout Duration?
final
keepAlive ClientKeepAliveOptions
final
proxy Proxy?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userAgent String
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