StreamableHttpServerTransport
Parameters
Transport configuration. See Configuration for available options.
Deprecated
Use default constructor with explicit Configuration()
Deprecated
Use constructor with Configuration: StreamableHttpServerTransport(Configuration(enableJsonResponse = ...))
Replace with
StreamableHttpServerTransport(Configuration(enableJsonResponse = enableJsonResponse, enableDnsRebindingProtection = enableDnsRebindingProtection, allowedHosts = allowedHosts, allowedOrigins = allowedOrigins, eventStore = eventStore, retryIntervalMillis = retryIntervalMillis))Secondary constructor for StreamableHttpServerTransport that simplifies initialization by directly taking the configurable parameters without requiring a Configuration instance.
Parameters
Determines whether the server should return JSON responses. Defaults to false.
Enables DNS rebinding protection. Defaults to false.
A list of hosts allowed for server communication. Defaults to null, allowing all hosts.
A list of allowed origins for CORS (Cross-Origin Resource Sharing). Defaults to null, allowing all origins.
The EventStore instance for handling resumable events. Defaults to null, disabling resumability.
Retry interval in milliseconds for event handling or reconnection attempts. Defaults to null.