StreamableHttpTransportConfig class final

Inheritance
Annotations
  • @immutable

Constructors

StreamableHttpTransportConfig({required String baseUrl, Map<String, String>? headers, Duration? timeout, int? maxConcurrentRequests, bool? useHttp2, McpOAuth? oauth, bool enableCompression = false, Duration? heartbeatInterval, int maxMissedHeartbeats = 3, bool terminateOnClose = true})
const

Properties

baseUrl → String
final
enableCompression → bool
No effect: responses are decompressed by the HTTP client, which asks for gzip itself. Kept so 2.x calls compile.
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, on revisions that have ping (Client.startKeepAlive); maxMissedHeartbeats unanswered pings in a row end the connection.
final
maxConcurrentRequests → int?
Requests in flight at once; more wait their turn.
final
maxMissedHeartbeats → int
Unanswered heartbeat pings in a row that end the connection.
final
oauth → McpOAuth?
MCP authorization: discovery, registration and tokens (see McpOAuth).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
terminateOnClose → bool
Send DELETE to end the session when disconnecting.
final
timeout → Duration?
final
useHttp2 → bool?
No effect: the HTTP client speaks HTTP/1.1. Kept so 2.x calls compile.
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