SseTransportConfig class final

Inheritance
Annotations
  • @immutable

Constructors

SseTransportConfig({required String serverUrl, Map<String, String>? headers, Duration? connectionTimeout, Duration? heartbeatInterval, OAuthToken? oauthToken, String? bearerToken, bool enableCompression = false, bool enableGzip = true, bool enableDeflate = true, int compressionLevel = 6, int maxMissedHeartbeats = 3})
const

Properties

bearerToken → String?
As oauthToken, given as the token string.
final
compressionLevel → int
final
connectionTimeout → Duration?
How long opening the event stream may take.
final
enableCompression → bool
No effect: responses are decompressed by the HTTP client, which asks for gzip itself. Kept so 2.x calls compile.
final
enableDeflate → bool
final
enableGzip → bool
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>?
final
heartbeatInterval → Duration?
Ping the server at this interval once connected (Client.startKeepAlive); maxMissedHeartbeats unanswered pings in a row end the connection.
final
maxMissedHeartbeats → int
Unanswered heartbeat pings in a row that end the connection.
final
oauthToken → OAuthToken?
A token sent as Authorization: Bearer (HTTP+SSE has no authorization flow of its own; use Streamable HTTP with oauth: for one).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serverUrl → 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