You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kotlin-sdk-server/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/server/StreamableHttpServerTransport.kt
+7-19Lines changed: 7 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -125,26 +125,14 @@ public class StreamableHttpServerTransport(private val configuration: Configurat
125
125
/**
126
126
* Configuration options for [StreamableHttpServerTransport].
127
127
*
128
-
* @property enableJsonResponse Determines whether the server should return JSON responses.
129
-
* Defaults to `false`.
130
-
*
131
-
* @property enableDnsRebindingProtection Enables DNS rebinding protection.
132
-
* Defaults to `false`.
133
-
*
134
-
* @property allowedHosts A list of hosts allowed for server communication.
135
-
* Defaults to `null`, allowing all hosts.
136
-
*
137
-
* @property allowedOrigins A list of allowed origins for CORS (Cross-Origin Resource Sharing).
138
-
* Defaults to `null`, allowing all origins.
139
-
*
140
-
* @property eventStore The `EventStore` instance for handling resumable events.
141
-
* Defaults to `null`, disabling resumability.
142
-
*
143
-
* @property retryInterval Retry interval for event handling or reconnection attempts.
144
-
* Defaults to `null`.
145
-
*
128
+
* @property enableJsonResponse when `true`, returns direct JSON responses instead of SSE streams
129
+
* @property enableDnsRebindingProtection enables DNS rebinding protection
130
+
* @property allowedHosts list of hosts allowed for server communication, or `null` to allow all
131
+
* @property allowedOrigins list of allowed CORS origins, or `null` to allow all
132
+
* @property eventStore store for resumable events, or `null` to disable resumability
133
+
* @property retryInterval retry interval for SSE reconnection attempts
146
134
* @property maxRequestBodySize Maximum allowed size (in bytes) for incoming request bodies.
0 commit comments