Configuration

class Configuration(val enableJsonResponse: Boolean = false, val enableDnsRebindingProtection: Boolean = false, val allowedHosts: List<String>? = null, val allowedOrigins: List<String>? = null, val eventStore: EventStore? = null, val retryInterval: Duration? = null, val maxRequestBodySize: Long = DEFAULT_MAX_REQUEST_BODY_SIZE)(source)

Configuration options for StreamableHttpServerTransport.

Constructors

Link copied to clipboard
constructor(enableJsonResponse: Boolean = false, enableDnsRebindingProtection: Boolean = false, allowedHosts: List<String>? = null, allowedOrigins: List<String>? = null, eventStore: EventStore? = null, retryInterval: Duration? = null, maxRequestBodySize: Long = DEFAULT_MAX_REQUEST_BODY_SIZE)

Properties

Link copied to clipboard

list of hosts allowed for server communication, or null to allow all

Link copied to clipboard

list of allowed CORS origins, or null to allow all

Link copied to clipboard

enables DNS rebinding protection

Link copied to clipboard

when true, returns direct JSON responses instead of SSE streams

Link copied to clipboard

store for resumable events, or null to disable resumability

Link copied to clipboard

Maximum allowed size (in bytes) for incoming request bodies. Defaults to 4 MB (4,194,304 bytes).

Link copied to clipboard

retry interval for SSE reconnection attempts