StreamableHttpTransportConfig constructor

const StreamableHttpTransportConfig({
  1. required String baseUrl,
  2. Map<String, String>? headers,
  3. Duration? timeout,
  4. int? maxConcurrentRequests,
  5. bool? useHttp2,
  6. OAuthConfig? oauthConfig,
  7. bool enableCompression = false,
  8. Duration? heartbeatInterval,
  9. int maxMissedHeartbeats = 3,
  10. bool terminateOnClose = true,
})

Implementation

const StreamableHttpTransportConfig({
  required this.baseUrl,
  this.headers,
  this.timeout,
  this.maxConcurrentRequests,
  this.useHttp2,
  this.oauthConfig,
  this.enableCompression = false,
  this.heartbeatInterval,
  this.maxMissedHeartbeats = 3,
  this.terminateOnClose = true,  // Default: true for backward compatibility
});