# 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

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

## Properties

headers
Link copied to clipboard
val headers: Map<String, String>

The headers to include in the request.

readTimeout
Link copied to clipboard
val readTimeout: Duration

The read timeout.

timeout
Link copied to clipboard
val timeout: Duration

The connection timeout.

url
Link copied to clipboard
val url: String

The URL of the HTTP server.