StreamableHttp

data class StreamableHttp(val url: String, val headers: Map<String, String> = emptyMap(), val timeout: Duration = Duration.ofSeconds(5), val readTimeout: Duration = Duration.ofMinutes(5)) : McpConnectionParameters

Parameters for establishing a MCP Streamable HTTP connection.

Constructors

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

Types

Link copied to clipboard
class Builder

Fluent builder for StreamableHttp, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The headers to include in the request.

Link copied to clipboard

The read timeout.

Link copied to clipboard

The connection timeout.

Link copied to clipboard
val url: String

The URL of the HTTP server.