Sse

data class Sse(val url: String, val sseEndpoint: String = "sse", val headers: Map<String, String> = emptyMap(), val timeout: Duration = Duration.ofSeconds(5), val sseReadTimeout: Duration = Duration.ofMinutes(5)) : McpConnectionParameters

Parameters for establishing a MCP Server-Sent Events (SSE) connection.

Prefer StreamableHttp. Use these parameters only for a server still on the phased-out 2024-11-05 protocol, which StreamableHttp does not fall back to.

构造函数(Constructors)

Link copied to clipboard
constructor(url: String, sseEndpoint: String = "sse", headers: Map<String, String> = emptyMap(), timeout: Duration = Duration.ofSeconds(5), sseReadTimeout: Duration = Duration.ofMinutes(5))

属性(Properties)

Link copied to clipboard

需要包含在请求中的头部信息(headers)。

Link copied to clipboard

SSE(Simple Shared Encryption)的端点。

Link copied to clipboard

SSE 的读取超时时间。

Link copied to clipboard

连接超时了。

Link copied to clipboard
val url: String

SSE 服务器的 URL。